You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
moredoc/app.example.toml

23 lines
569 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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