config.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. server:
  2. address: ":8001"
  3. dumpRouterMap: false # 是否在Server启动时打印所有的路由列表。默认为true
  4. graceful: true # 是否开启平滑重启特性,开启时将会在本地增加10000的本地TCP端口用于进程间通信。默认false
  5. gracefulTimeout: 10 # 平滑重启父进程最大存活时间。默认2秒
  6. isDev: true
  7. logger:
  8. level: "all"
  9. path: "logs" # 日志文件路径。默认为空,表示关闭,仅输出到终端
  10. file: "{Y-m-d}.log" # 日志文件格式。默认为"{Y-m-d}.log"
  11. viewer:
  12. paths:
  13. - resource/template
  14. defaultFile: index.html
  15. autoencode: true
  16. database:
  17. default:
  18. link: "clickhouse:jytop:pwdTopJy123@tcp(192.168.3.207:19000)/jyseo_test?dial_timeout=2000ms&max_execution_time=60"
  19. debug: false
  20. tidb:
  21. link: "mysql:root:=PDT49#80Z!RVv52_z@tcp(192.168.3.14:4000)/base_service"
  22. #debug: true
  23. mongodb:
  24. default:
  25. address: "192.168.3.206:27080"
  26. size: 5
  27. dbName: qfw
  28. replSet: ""
  29. userName: ""
  30. password: ""
  31. log:
  32. address: "192.168.3.206:27090"
  33. size: 5
  34. dbName: "qfw"
  35. replSet: ""
  36. userName: "admin"
  37. password: "123456"
  38. redis:
  39. default: # 配置seo的redis
  40. address: 127.0.0.1:6379
  41. #address: 192.168.3.149:1712
  42. other: # 广告位
  43. #address: 192.168.3.149:1712
  44. address: 127.0.0.1:6379
  45. session: # session
  46. #address: 192.168.3.149:1712
  47. address: 127.0.0.1:6379
  48. regex: "^(/jyapp)?/article/(content|bdprivate|mailprivate):article,^(/supsearch/index.html|/front/pcAjaxReq|/jyapi/jybx/core/.Type/searchList):search,^/bigmember/(portrait|subVipPortrait)/:portrait"
  49. log_tables: ["jy_logs", "jyapp_logs", "bigmember_logs"]
  50. th_u: 10
  51. th_d: 10
  52. sync_user: 1
  53. sync_log: 1