config.yaml 1.3 KB

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