gateway-configmap.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: shop-recycle-gateway-config
  5. namespace: default
  6. labels:
  7. app: shop-recycle-gateway
  8. service: gateway
  9. config-type: public
  10. data:
  11. # application.properties
  12. application.properties: |
  13. spring.application.name=shop-recycle-gateway
  14. spring.protocol.name=spring
  15. server.port=1211
  16. # application.yml - 非敏感配置部分
  17. application.yml: |
  18. server:
  19. port: 1211
  20. spring:
  21. application:
  22. name: shop-recycle-gateway
  23. main:
  24. allow-bean-definition-overriding: true
  25. cloud:
  26. nacos:
  27. discovery:
  28. server-addr: nacos.bak.com:8848
  29. service: ${spring.application.name}
  30. weight: 1
  31. gateway:
  32. discovery:
  33. locator:
  34. lower-case-service-id: true
  35. routes:
  36. - id: 登录中心
  37. uri: lb://shop-recycle-login-center-web
  38. predicates:
  39. - Path=/login-center/**
  40. - id: PC-平台
  41. uri: lb://shop-recycle-platform-pc-web
  42. predicates:
  43. - Path=/platform/pc/**
  44. - id: 小程序-门店
  45. uri: lb://shop-recycle-store-wechat-web
  46. predicates:
  47. - Path=/store/wechat/**
  48. - id: pc-门店
  49. uri: lb://shop-recycle-store-pc-web
  50. predicates:
  51. - Path=/store/pc/**
  52. - id: 小程序-商户
  53. uri: lb://shop-recycle-merchant-wechat-web
  54. predicates:
  55. - Path=/merchant/wechat/**
  56. - id: PC-商户
  57. uri: lb://shop-recycle-merchant-pc-web
  58. predicates:
  59. - Path=/merchant/pc/**
  60. - id: 文件上传
  61. uri: lb://shop-recycle-oss-web
  62. predicates:
  63. - Path=/upload/**
  64. - id: 微信接口配置
  65. uri: lb://shop-recycle-wechat-web
  66. predicates:
  67. - Path=/wechat/**
  68. - id: 支付接口配置
  69. uri: lb://shop-recycle-payment-web
  70. predicates:
  71. - Path=/payment/api/**
  72. - id: 导表接口配置
  73. uri: lb://shop-recycle-import-web
  74. predicates:
  75. - Path=/export/**
  76. - id: PC-代理
  77. uri: lb://shop-recycle-agent-pc-web
  78. predicates:
  79. - Path=/agent/pc/**
  80. - id: 小程序-C端
  81. uri: lb://shop-recycle-customer-web
  82. predicates:
  83. - Path=/customer/wechat/**
  84. - id: PC-ERP
  85. uri: lb://shop-recycle-erp-pc-web
  86. predicates:
  87. - Path=/erp/pc/**
  88. - id: PC-代卖
  89. uri: lb://shop-recycle-buy-pc-web
  90. predicates:
  91. - Path=/buy/pc/**
  92. - id: 小程序-代卖
  93. uri: lb://shop-recycle-buy-wechat-web
  94. predicates:
  95. - Path=/buy/wechat/**
  96. - id: PC-运营
  97. uri: lb://shop-recycle-marketer-pc-web
  98. predicates:
  99. - Path=/marketer/pc/**
  100. - id: WS
  101. uri: lb://shop-recycle-ws-web
  102. predicates:
  103. - Path=/ws/*
  104. sentinel:
  105. transport:
  106. port: 8005
  107. dashboard: localhost:8091
  108. datasource:
  109. flow:
  110. nacos:
  111. server-addr: nacos.bak.com:8848
  112. data-id: gateway-sentinel-flow
  113. data-type: json
  114. rule-type: flow
  115. # Redis Sentinel 配置(地址不含密码)
  116. redis:
  117. sentinel:
  118. master: mymaster
  119. nodes:
  120. - redis.jxfx1.com:27000
  121. - redis.jxfx2.com:27000
  122. - redis.jxfx3.com:27000
  123. password: ${REDIS_PASSWORD}
  124. database: 15
  125. # 业务配置
  126. swagger:
  127. show: false
  128. isFilter: true
  129. isFilterDes3: false
  130. swagger.enable: true
  131. deskey:
  132. firstKey: 63e42c2444e94c1ebca21d30d2aa39a5
  133. time: 60
  134. is-reveal-error: true