feat: 新增存储路径自定义,修复s3存储未删除文件#246

This commit is contained in:
Lan
2025-02-08 22:41:32 +08:00
parent d0427276d3
commit 1c7e010dbb
21 changed files with 52 additions and 43 deletions
+3 -3
View File
@@ -39,13 +39,13 @@ async def lifespan(app: FastAPI):
# 初始化数据库
await init_db()
# 启动后台任务
task = asyncio.create_task(delete_expire_files())
# 加载配置
await load_config()
app.mount('/assets', StaticFiles(directory=f'./{settings.themesSelect}/assets'), name="assets")
# 启动后台任务
task = asyncio.create_task(delete_expire_files())
try:
yield
finally: