file
This commit is contained in:
@@ -35,3 +35,13 @@ admin:
|
||||
# 后台 JWT 签名密钥,务必通过环境变量 ADMIN_JWT_SECRET 注入
|
||||
jwt_secret: "${ADMIN_JWT_SECRET}"
|
||||
token_ttl: 720h
|
||||
|
||||
# 文件上传服务配置。
|
||||
# storage_type: local 落盘到 local_path;minio 等对象存储预留,后续接入。
|
||||
# allowed_ext 为空表示不限制文件类型(仅受 max_size 约束);如需限制填扩展名列表。
|
||||
upload:
|
||||
storage_type: local
|
||||
local_path: ./uploads
|
||||
base_url: /files/static
|
||||
max_size: 10485760 # 单文件上限 10MB(字节)
|
||||
allowed_ext: [] # 例如 [jpg, png, pdf],空表示不限制
|
||||
|
||||
Reference in New Issue
Block a user