44 lines
781 B
YAML
44 lines
781 B
YAML
server:
|
|
port: "8080"
|
|
hospital_code: "9999"
|
|
mode: "debug" # debug, release, test
|
|
read_timeout: 30s
|
|
write_timeout: 30s
|
|
max_conn_num: 100
|
|
|
|
database:
|
|
driver: "mysql"
|
|
host: "localhost"
|
|
port: 3306
|
|
username: "root"
|
|
password: "root"
|
|
dbname: "hospital_pay"
|
|
charset: "utf8mb4"
|
|
parseTime: true
|
|
loc: "Local"
|
|
max_idle_conns: 10
|
|
max_open_conns: 100
|
|
conn_max_lifetime: 3600s
|
|
|
|
redis:
|
|
host: localhost
|
|
port: 6379
|
|
password: ""
|
|
db: 0
|
|
|
|
jwt:
|
|
secret: your-secret-key
|
|
expire: 24h # token 过期时间
|
|
|
|
log:
|
|
level: "debug" # debug, info, warn, error, fatal
|
|
format: "json" # json, text
|
|
output_path: "logs/app.log"
|
|
max_size: 500 # MB
|
|
max_age: 28 # 天
|
|
max_backups: 10
|
|
compress: true
|
|
|
|
monitoring:
|
|
enabled: true
|
|
prometheus_port: "9090" |