chore: initial commit

This commit is contained in:
2026-07-22 17:50:33 +08:00
parent 82936a8987
commit ee9f50b859
107 changed files with 8346 additions and 0 deletions

33
example.yaml Normal file
View File

@@ -0,0 +1,33 @@
server:
port: 8080
host: 127.0.0.1
database:
host: db_host
port: db_port
user: postgres
password: db_password
dbname: db_name
sslMode: disable
jwt:
secret:
signing_method: HS256
expire: 30m
refresh_expire: 720h
issuer:
audience:
token_header: Authorization
token_prefix: "Bearer "
file:
base_url: http://127.0.0.1:8080/static/ #静态文件目录 用于本地访问开放静态资源
log:
level: debug # debug / info / warn / error
filename: logs/app.log
max_size: 100 # 单个文件最大 MB
max_backups: 30 # 最多保留旧文件个数
max_age: 30 # 最多保留天数
compress: true # 是否压缩旧日志
console: true # 是否同时输出到控制台