config.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. server:
  2. # 基本配置
  3. address: :8077 # 本地监听地址。默认":80"
  4. readTimeout: 60s # 请求读取超时时间,一般不需要配置。默认为60秒
  5. maxHeaderBytes: 10240 # 请求Header大小限制(Byte)。默认为10KB
  6. serverAgent: jianyu Gateway # 服务端Agent信息。默认为"GF HTTP Server"
  7. # 其他配置
  8. sessionCookieOutput: false # 关闭session及返回cookie,是否将SessionId返回到Cookie中。默认true
  9. clientMaxBodySize: 810241024 # 客户端最大Body上传限制大小,影响文件上传大小(Byte)。默认为8*1024*1024=8MB
  10. formParsingMemory: 1048576 # 解析表单时的缓冲区大小(Byte),一般不需要配置。默认为1024*1024=1MB
  11. dumpRouterMap: false # 是否在Server启动时打印所有的路由列表。默认为true
  12. graceful: true # 是否开启平滑重启特性,开启时将会在本地增加10000的本地TCP端口用于进程间通信。默认false
  13. gracefulTimeout: 10 # 平滑重启父进程最大存活时间。默认2秒
  14. # 基础服务ETCD配置
  15. etcd:
  16. # 基础服务
  17. baseserver:
  18. appid: 10000
  19. # 用户中台配置
  20. userCenter:
  21. key: usercenter.rpc
  22. address:
  23. - 192.168.3.149:2379
  24. # 资源中台配置
  25. resourceCenter:
  26. key: resource.rpc
  27. address:
  28. - 192.168.3.149:2379
  29. # 权益中台配置
  30. powerCheckCenter:
  31. key: powercheck.rpc
  32. address:
  33. - 192.168.3.149:2379
  34. #数据库配置
  35. databases:
  36. # redis配置
  37. redis: session=192.168.3.11:1713,other=192.168.3.11:1712 # session用户获取剑鱼程序用户session other用户获取剑鱼权益redis
  38. polyredis:
  39. address: 192.168.3.11:1713
  40. poolsize: 30
  41. # mysql配置
  42. mysql:
  43. dbName: base_service
  44. address: 192.168.3.217:4000
  45. userName: root
  46. passWord: =PDT49#80Z!RVv52_z
  47. maxOpenConns: 5
  48. maxIdleConns: 5
  49. # jianyu mysql配置
  50. mysqlJy:
  51. dbName: jianyu
  52. address: 192.168.3.149:3306
  53. userName: root
  54. passWord: Topnet123
  55. maxOpenConns: 5
  56. maxIdleConns: 5
  57. # jianyu mongo配置
  58. mogJy:
  59. address: 192.168.3.206:27080
  60. size: 5
  61. dbName: qfw
  62. replSet:
  63. # 系统配置
  64. system:
  65. # 监听服务注册etcd配置
  66. etcdListen:
  67. - 127.0.0.1:2379
  68. response:
  69. head-clear: # 响应头删除
  70. - Trace-Id
  71. - deductNum
  72. - deductIds
  73. proxy:
  74. timeout: 30 # 连接超时。默认30秒
  75. keepAlive: 60 # 长链接超时。默认60秒
  76. maxIdleConns: 120 # 最大空闲连接 0没有限制。默认120
  77. idleConnTimeout: 90 # 空闲超时时间。默认90秒
  78. tLSHandshakeTimeout: 1 # tls握手超时时间。默认1秒
  79. expectContinueTimeout: 1 # 100-continue 超时时间。默认1秒
  80. maxIdleConnsPerHost: 5 # 客户端可以持有的最大空闲连接。默认5
  81. jaeger:
  82. name: "gateway"
  83. address: "192.168.3.71:6831"
  84. # 系统告警
  85. alarm:
  86. isOpen: true # 异常通知开关。默���关闭
  87. address: 192.168.3.207:4150 # nsq消息通知地址。默认关闭
  88. toppic: jyalert # 消息管道
  89. isJsonEncode: false # 是否加密
  90. id: pre_alert # id
  91. title: 你有新的告警消息处理 # 消息标题
  92. text: 前置代理告警请查看 # 消息正文
  93. outServer:
  94. sussbi:
  95. addr: http://192.168.3.11:8012
  96. user: jianyuweb
  97. password: 111111
  98. singlePointUrl: "^/succbi/(crm_system|yyssjdz)"
  99. paramReplace:
  100. "/succbi/api/meta/services/convertFileToPDF/*":
  101. replace:
  102. QUERY_PARAM_M_POSITION_ID: "jyUserPositionId"
  103. position_id: "jyUserPositionId"
  104. QUERY_PARAM_COMPANY_ID: "jyEntId"
  105. company_id: "jyEntId"
  106. "/succbi/api/dw/services/downloadAttachment":
  107. match:
  108. params.jyUserPositionId: "jyUserPositionId"
  109. params.jyEntId: "jyEntId"
  110. "/succbi/api/dw/services/getDwAttachments":
  111. match:
  112. params.jyUserPositionId: "jyUserPositionId"
  113. params.jyEntId: "jyEntId"
  114. "/succbi/nzbg/app/nzbg.app/word_nzbg/nzbg_word.d.docx":
  115. replace:
  116. QUERY_PARAM_M_POSITION_ID: "jyUserPositionId"
  117. position_id: "jyUserPositionId"
  118. "/succbi/nzbg/app/nzbg.app/word_nzbg/nzbg_word_team.d.docx":
  119. replace:
  120. QUERY_PARAM_COMPANY_ID: "jyEntId"
  121. company_id: "jyEntId"
  122. # 仅限此程序代理的地址
  123. noPowerUrlSwitch:
  124. '/succbi/nzj/app/nzj.app/nzj_detail_1.spg' : '/succbi/nzj/app/nzj.app/nzj_detail_0.spg'
  125. '/succbi/nzj/app/nzj.app/nzj_search_1.spg': '/succbi/nzj/app/nzj.app/nzj_search_0.spg'
  126. apiEncryptKey: "jy@123"