feat: update template
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user