42 lines
647 B
YAML
42 lines
647 B
YAML
server:
|
|
port: 1234
|
|
mode: release
|
|
|
|
database:
|
|
host: localhost
|
|
port: 3306
|
|
username: root
|
|
password: sasasasa
|
|
dbname: yinli
|
|
charset: utf8mb4
|
|
parseTime: true
|
|
loc: Local
|
|
maxIdleConns: 50
|
|
maxOpenConns: 500
|
|
|
|
redis:
|
|
host: localhost
|
|
port: 6379
|
|
password: ""
|
|
db: 2
|
|
poolSize: 50
|
|
|
|
jwt:
|
|
secret: prod-jwt-secret-key-must-be-changed
|
|
expireHours: 8
|
|
|
|
rateLimit:
|
|
enabled: true
|
|
requests: 500
|
|
window: 60 # seconds
|
|
|
|
cors:
|
|
allowOrigins: ["https://api.example.com"]
|
|
allowMethods: ["GET", "POST", "PUT", "DELETE"]
|
|
allowHeaders: ["Content-Type", "Authorization"]
|
|
|
|
log:
|
|
level: warn
|
|
format: json
|
|
output: file
|