feat: update template

This commit is contained in:
2026-08-19 22:05:49 +08:00
parent 0e674e9d56
commit 5a71093b0c
67 changed files with 2070 additions and 585 deletions

View File

@@ -1,6 +1,8 @@
server:
port: 8080
host: 127.0.0.1
# 是否运行在受信反向代理后true 才信任 X-Forwarded-For/X-Real-IP否则忽略防伪造
trust_proxy: false
database:
host: db_host
@@ -17,7 +19,7 @@ redis:
key_prefix: ""
jwt:
secret:
secret: ""
signing_method: HS256
expire: 30m
refresh_expire: 720h
@@ -29,6 +31,8 @@ jwt:
file:
base_url: http://127.0.0.1:8080/static/ #静态文件目录 用于本地访问开放静态资源
upload_dir: "uploads"
max_upload_size: 10485760 # 10MB
log:
level: debug # debug / info / warn / error