GoTest/config/stage.yaml
2025-11-29 03:27:19 +08:00

42 lines
692 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: 20
maxOpenConns: 200
redis:
host: localhost
port: 6379
password: ""
db: 1
poolSize: 20
jwt:
secret: stage-jwt-secret-key-change-in-production
expireHours: 12
rateLimit:
enabled: true
requests: 200
window: 60 # seconds
cors:
allowOrigins: ["http://localhost:3000", "https://stage.example.com"]
allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowHeaders: ["Content-Type", "Authorization"]
log:
level: info
format: json
output: file