Files
doc-uploader/file-upload-site/.env.example
2026-06-12 14:27:19 +08:00

29 lines
974 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ── 文件上传网站配置 ──────────────────────────────────────
# 复制本文件为 .env 并修改对应值cp .env.example .env
# Flask 密钥(生产环境务必更换为随机字符串)
SECRET_KEY=file-upload-site-secret-key-change-me
# NAS 文件存储根目录(绝对路径)
# Docker 部署时保持默认 /app/uploads通过 docker-compose volumes 映射宿主机目录
# 直接部署时改为 NAS 实际路径
# UPLOAD_ROOT=/mnt/nas/文字稿
# 单文件大小限制(字节),默认 20MB
# MAX_FILE_SIZE=20971520
# 单次最多上传文件数
# MAX_FILES_PER_UPLOAD=9
# Rate Limiting单 IP 每小时最多上传次数
# RATE_LIMIT_PER_HOUR=20
# 验证码过期时间(秒)
# CAPTCHA_EXPIRY=300
# 服务监听端口Docker 部署时端口映射在 docker-compose.yml 中配置)
# PORT=5000
# 是否开启 debug 模式true/false
# DEBUG=false