12345678910111213141516171819202122232425262728293031323334353637383940 |
- # https://goframe.org/docs/web/server-config-file-template
- server:
- address: ":8000"
- dumpRouterMap: false # 是否在Server启动时打印所有的路由列表。默认为true
- graceful: true # 是否开启平滑重启特性,开启时将会在本地增加10000的本地TCP端口用于进程间通信。默认false
- gracefulTimeout: 10 # 平滑重启父进程最大存活时间。默认2秒
- # https://goframe.org/docs/core/glog-config
- logger:
- level: "all"
- path: "logs" # 日志文件路径。默认为空,表示关闭,仅输出到终端
- file: "{Y-m-d}.log" # 日志文件格式。默认为"{Y-m-d}.log"
- # https://goframe.org/docs/core/gdb-config-file
- database:
- default:
- link: "mysql:jianyu:Topnet123@tcp(172.20.45.129:4000)/jianyu"
- debug: false
- base:
- link: "mysql:jianyu:Topnet123@tcp(172.20.45.129:4000)/base_service"
- debug: false
- test:
- link: "mysql:jianyu:Topnet123@tcp(172.20.45.129:4000)/test"
- debug: true
- redis:
- default: # 配置seo的redis
- address: 127.0.0.1:6379
- other: # 广告位
- address: 127.0.0.1:6379
- userCenterUrl: "https://jybx-webtest.jydev.jianyu360.com"
- etcd:
- hosts:
- - 172.31.31.203:2379
- userCenterKey: "usercenter.rpc" #用户中台rpc
- powerCheckCenterKey: "powercheck.rpc" #权益校验中台
- entManageApplication: "entmanageapplication.rpc" #企业管理中台
|