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

42 lines
614 B
YAML

server:
port: 1234
mode: debug
database:
host: localhost
port: 3306
username: root
password: sasasasa
dbname: yinli
charset: utf8mb4
parseTime: true
loc: Local
maxIdleConns: 10
maxOpenConns: 100
redis:
host: localhost
port: 6379
password: ""
db: 0
poolSize: 10
jwt:
secret: dev-jwt-secret-key-change-in-production
expireHours: 24
rateLimit:
enabled: true
requests: 100
window: 60 # seconds
cors:
allowOrigins: ["*"]
allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowHeaders: ["*"]
log:
level: debug
format: json
output: stdout