update app.toml

dev
truthhun 1 year ago
parent f8d6fe11e7
commit c9b919b389

@ -1,14 +1,23 @@
# 程序运行级别debug、info、warn、error # 程序运行级别debug、info、warn、error生产环境使用 info及其以上级别
level="debug" level = "debug"
# 日志编码方式支持json、console # 日志编码方式支持json、console
logEncoding="console" logEncoding = "console"
port="8880"
# 程序运行端口
port = "8880"
# 数据库配置
[database] [database]
driver="mysql" driver = "mysql"
dsn="root:root@tcp(localhost:3306)/moredoc?charset=utf8mb4&loc=Local&parseTime=true" dsn = "root:root@tcp(localhost:3306)/moredoc?charset=utf8mb4&loc=Local&parseTime=true"
showSQL=true showSQL = true
maxOpen=10 maxOpen = 10
maxIdle=10 maxIdle = 10
# JSON Web Token 配置
[jwt] [jwt]
secret="moredoc" # 生成 token 的密钥,请务必修改!!!
expireDays=365 secret = "moredoc"
# token 过期时间
expireDays = 365
Loading…
Cancel
Save