spring:
redis:
host: 210.210.210.10
port: 6379
password: copote
database: 7
cloud:
gateway:
routes:
- id: uaa-service #认证中心
uri: lb://uaa-service
predicates:
- Path=/uaa/**
filters:
- StripPrefix=1
- name: Xss
args:
ignorePath:
- /oauth/code
- id: app-base-service #系统服务
uri: lb://app-base-service
predicates:
- Path=/base/**
filters:
- StripPrefix=1
- name: Xss
args:
ignorePath:
- /oauth/code
- id: activiti-service #流程服务
uri: lb://activiti-service
predicates:
- Path=/activiti/**
filters:
- StripPrefix=1
- id: experiment-service #试验模块
uri: lb://experiment-service
predicates:
- Path=/experiment/**
filters:
- StripPrefix=1
- name: Xss
args:
ignorePath:
- /oauth/code
- id: file-service #文件中心
uri: lb://file-service
predicates:
- Path=/file/**
filters:
- StripPrefix=1
- id: open-service #开发平台
uri: lb://open-service
predicates:
- Path=/open/**
filters:
- StripPrefix=1
- id: live-broadcast-service #直播平台
uri: lb://live-broadcast-service
predicates:
- Path=/broadcast/**
filters:
- StripPrefix=1
- id: freemarker-service #直播平台
uri: lb://freemarker-service
predicates:
- Path=/freemarker/**
filters:
- StripPrefix=1
- id: timing-service #定时任务调度
uri: lb://timing-service
predicates:
- Path=/timing/**
filters:
- StripPrefix=1
- id: zipkin #zipkin认证
uri: http://zipkin-svc:9411
predicates:
- Path=/zipkin/**
swagger:
enable: true
ignore:
apiIgnoreUrl:
- /file-manager/downloadFile/**
- /oauth/token
- /userinfo
- /doLogin
- /oauth/publicKey
- /oauth/authorize
- /oauth/code
- /v3/api-docs
- /doc.html
- /message/sendOtp
- /message/sendNoticeSms
- /login
- /signin
- /system/menus/route
- /system/users/me
- /file-manager/uploadMinio/external
- /customer/register
- /model/**/json
- /oauth/logout
- /users/updatePasswordPre
- /file-manager/uploadMinio
- /convertFile
- /users/updatePasswordBySms
- /xxl-job-admin/**
- /oauth/wechat/bind
- /oauth/wechat/logout
- /.well-known/**
- /websocket/**
- /video/**
- /cms/**
- /zipkin/**
- /channel/getSetting
- /fileManager/getFilesByBsId
- /file-manager/downloadFile/
- /video/live/**
- /druid/**
tokenIgnoreUrl:
- /oauth/token
- /userinfo
- /doLogin
- /oauth/publicKey
- /oauth/authorize
- /oauth/code
- /system/menus/route
- /system/users/me
- /v3/api-docs
- /doc.html
- /message/sendOtp
- /users/updatePasswordBySms
- /users/updatePasswordPre
- /file-manager/uploadMinio/external
- /customer/register
- /model/**/json
- /login
- /signin
- /xxl-job-admin/**
- /oauth/wechat/bind
- /.well-known/**
- /websocket/**
- /dataScreen/**
- /stat/overview
- /pieceManage/getCountPage
- /trialTable/trendReport/1
- /flow/create
- /trialTask/selectOpenTrialList
- /reportPush/openReportList
- /report/getReportElementByOpen
- /trialFile/detailByFile
- /trialTask/getTrialList/**
- /file-manager/open/downloadFile/**
- /stat/trialTaskSource
- /stat/trialTaskType
- /channel/getSetting
- /fileManager/getFilesByBsId
limitIgnoreIp:
- 10.10.17.60
limitNum: 20
springcloud gateway配置案例
最新推荐文章于 2024-09-11 17:18:33 发布