feat(server): 配置签名 URL 密钥 — StorageConfig.secret_key
This commit is contained in:
@@ -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 = 安全优先。
|
||||
|
||||
Reference in New Issue
Block a user