feat(server): 配置签名 URL 密钥 — StorageConfig.secret_key

This commit is contained in:
iven
2026-05-10 15:39:11 +08:00
parent 1a459de4ad
commit 85bff6f267
3 changed files with 23 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ is_enabled = true
[storage]
upload_dir = "./uploads"
max_file_size = "10MB"
# 签名 URL 密钥(生产环境必须通过 ERP__STORAGE__SECRET_KEY 环境变量设置)
secret_key = "dev-only-secret-key-change-in-production"
[rate_limit]
# Redis 不可达时是否拒绝请求fail-close。默认 true = 安全优先。