1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- server:
- address: ":8080"
- serverRoot: "resource/public"
- dumpRouterMap: true
- routeOverWrite: true
- openapiPath: "/api.json"
- swaggerPath: "/swagger"
- NameToUriType: 3
- maxHeaderBytes: "20KB"
- clientMaxBodySize: "50MB"
- # Logging配置
- logPath: "resource/log/server" # 日志文件存储目录路径,建议使用绝对路径。默认为空,表示关闭
- logStdout: true # 日志是否输出到终端。默认为true
- errorStack: false # 当Server捕获到异常时是否记录堆栈信息到日志中。默认为true
- errorLogEnabled: true # 是否记录异常日志信息到日志中。默认为true
- errorLogPattern: "error-{Ymd}.log" # 异常错误日志文件格式。默认为"error-{Ymd}.log"
- accessLogEnabled: true # 是否记录访问日志。默认为false
- accessLogPattern: "access-{Ymd}.log" # 访问日志文件格式。默认为"access-{Ymd}.log"
- logger:
- path: "resource/log/run"
- file: "{Y-m-d}.log"
- level: "all"
- stdout: true
- # Database.
- database:
- logger:
- level: "all"
- stdout: true
- Path: "resource/log/sql"
- default:
- link: "mysql:root:123456@tcp(127.0.0.1:3306)/nodeMonitor"
- debug: true
- charset: "utf8mb4" #数据库编码
- dryRun: false #空跑
- maxIdle: 10 #连接池最大闲置的连接数
- maxOpen: 10 #连接池最大打开的连接数
- maxLifetime: 30 #(单位秒)连接对象可重复使用的时间长度
- node:
- die: 3 #用于判断线路 不通的次数
- pingCount: 20 #用于检测线路的次数
- startTime: 900 #用于查询15分钟内的数据
- loos: 30 #用于丢包率检测 如果丢包率>当前值就是坏了
- taskName: "ping_task" #任务名称
- #gfToken:
- # cacheKey: "gfToken_"
- # timeOut: 10800
- # maxRefresh: 5400
- # multiLogin: true
- # encryptKey: "49c54195e750b04e74a8429b17896586"
- # cacheModel: "redis"
- # excludePaths:
- # - ""
- ## Redis 配置示例
- #redis:
- # # 单实例配置
- # default:
- # address: 127.0.0.1:6379
- # db: 1
- # idleTimeout: 600
- # maxActive: 100
- #system:
- # notCheckAuthAdminIds: [1, 2, 31] #无需验证后台权限的用户id
- # dataDir: "./resource/data"
- # cache:
- # model: "redis" #缓存模式 memory OR redis
- # prefix: "liarCache_" #缓存前缀
- ##casbin配置
- #casbin:
- # modelFile: "./resource/casbin/rbac_model.conf"
- # policyFile: "./resource/casbin/rbac_policy.csv"
|