21 lines
464 B
YAML
Executable File
21 lines
464 B
YAML
Executable File
# 生产环境配置
|
|
server:
|
|
port: 8080
|
|
mode: "release"
|
|
read_timeout: 30
|
|
write_timeout: 30
|
|
|
|
database:
|
|
host: "mysql"
|
|
port: 3306
|
|
user: "root"
|
|
password: "password"
|
|
dbname: "myapp"
|
|
max_open_conns: 100
|
|
max_idle_conns: 10
|
|
reset_database: false # 生产环境务必关闭,否则重启会清空所有数据
|
|
|
|
jwt:
|
|
secret: "2Jkh4BdL6TVURttUEXlMeyD7rCLCkVvwdzPnddEIBRs=" # 生产环境请更换为强密钥
|
|
expire_hours: 24
|