feat(公开内容): 添加临时文件上传功能,支持1小时/1天/7天过期

This commit is contained in:
xiaji
2026-05-25 21:08:56 +08:00
parent 3aa311b9da
commit ce7d39f36c
7 changed files with 328 additions and 87 deletions

View File

@@ -190,6 +190,10 @@ CSRF_TRUSTED_ORIGINS = [
# 如果你将来有域名,也可以在这里加上,例如 "https://yourdomain.com"
]
# 文件上传大小限制 (500MB)
DATA_UPLOAD_MAX_MEMORY_SIZE = 524288000
FILE_UPLOAD_MAX_MEMORY_SIZE = 524288000
CELERY_BROKER_URL = 'redis://:xjjq1234!@localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://:xjjq1234!@localhost:6379/0'