| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: shop-recycle-gateway-config
- namespace: default
- labels:
- app: shop-recycle-gateway
- service: gateway
- config-type: public
- data:
- # application.properties
- application.properties: |
- spring.application.name=shop-recycle-gateway
- spring.protocol.name=spring
- server.port=1211
- # application.yml - 非敏感配置部分
- application.yml: |
- server:
- port: 1211
- spring:
- application:
- name: shop-recycle-gateway
- main:
- allow-bean-definition-overriding: true
- cloud:
- nacos:
- discovery:
- server-addr: nacos.bak.com:8848
- service: ${spring.application.name}
- weight: 1
- gateway:
- discovery:
- locator:
- lower-case-service-id: true
- routes:
- - id: 登录中心
- uri: lb://shop-recycle-login-center-web
- predicates:
- - Path=/login-center/**
- - id: PC-平台
- uri: lb://shop-recycle-platform-pc-web
- predicates:
- - Path=/platform/pc/**
- - id: 小程序-门店
- uri: lb://shop-recycle-store-wechat-web
- predicates:
- - Path=/store/wechat/**
- - id: pc-门店
- uri: lb://shop-recycle-store-pc-web
- predicates:
- - Path=/store/pc/**
- - id: 小程序-商户
- uri: lb://shop-recycle-merchant-wechat-web
- predicates:
- - Path=/merchant/wechat/**
- - id: PC-商户
- uri: lb://shop-recycle-merchant-pc-web
- predicates:
- - Path=/merchant/pc/**
- - id: 文件上传
- uri: lb://shop-recycle-oss-web
- predicates:
- - Path=/upload/**
- - id: 微信接口配置
- uri: lb://shop-recycle-wechat-web
- predicates:
- - Path=/wechat/**
- - id: 支付接口配置
- uri: lb://shop-recycle-payment-web
- predicates:
- - Path=/payment/api/**
- - id: 导表接口配置
- uri: lb://shop-recycle-import-web
- predicates:
- - Path=/export/**
- - id: PC-代理
- uri: lb://shop-recycle-agent-pc-web
- predicates:
- - Path=/agent/pc/**
- - id: 小程序-C端
- uri: lb://shop-recycle-customer-web
- predicates:
- - Path=/customer/wechat/**
- - id: PC-ERP
- uri: lb://shop-recycle-erp-pc-web
- predicates:
- - Path=/erp/pc/**
- - id: PC-代卖
- uri: lb://shop-recycle-buy-pc-web
- predicates:
- - Path=/buy/pc/**
- - id: 小程序-代卖
- uri: lb://shop-recycle-buy-wechat-web
- predicates:
- - Path=/buy/wechat/**
- - id: PC-运营
- uri: lb://shop-recycle-marketer-pc-web
- predicates:
- - Path=/marketer/pc/**
- - id: WS
- uri: lb://shop-recycle-ws-web
- predicates:
- - Path=/ws/*
- sentinel:
- transport:
- port: 8005
- dashboard: localhost:8091
- datasource:
- flow:
- nacos:
- server-addr: nacos.bak.com:8848
- data-id: gateway-sentinel-flow
- data-type: json
- rule-type: flow
-
- # Redis Sentinel 配置(地址不含密码)
- redis:
- sentinel:
- master: mymaster
- nodes:
- - redis.jxfx1.com:27000
- - redis.jxfx2.com:27000
- - redis.jxfx3.com:27000
- password: ${REDIS_PASSWORD}
- database: 15
-
- # 业务配置
- swagger:
- show: false
- isFilter: true
- isFilterDes3: false
- swagger.enable: true
-
- deskey:
- firstKey: 63e42c2444e94c1ebca21d30d2aa39a5
- time: 60
-
- is-reveal-error: true
|