123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- env: local
- # ip白名单
- ip_allowlist:
- enabled: true
- ips:
- - "127.0.0.1"
- - "::1"
- - "110.42.96.15"
- # ip限流
- rate_limit:
- enabled: true
- rate: 5 # 每秒允许的请求数
- burst: 5 # 令牌桶的大小
- http:
- host: 127.0.0.1
- port: 9999
- security:
- api_sign:
- app_key: 123456
- app_security: 123456
- jwt:
- key: 1234
- data:
- mysql:
- user: root:123456@tcp(127.0.0.1:3380)/user?charset=utf8mb4&parseTime=True&loc=Local
- redis:
- addr: 127.0.0.1:6350
- password: ""
- db: 0
- read_timeout: 0.2s
- write_timeout: 0.2s
- log:
- log_level: warn
- encoding: console # json or console
- log_file_name: "./storage/logs/server.log"
- max_backups: 30 # 日志文件最多保存多少个备份
- max_age: 7 # 文件最多保存多少天
- max_size: 1024 # 每个日志文件保存的最大尺寸 单位:M
- compress: true # 是否压缩
- ip:
- network_interface: bond0
- ip_label: CDN-NODE
- script_path: /etc/network/
|