12345678910111213141516171819202122232425262728293031323334353637 |
- server:
- port: 5509
- spring:
- application:
- name: sooka-gateway
- cloud:
- nacos:
- discovery:
- server-addr: 172.17.5.4:8848
- # server-addr: 10.0.51.4:8848
- gateway:
- discovery:
- locator:
- enabled: true
- lower-case-service-id: true #发现服务命名是否要转换为小写
- routes:
- - id: auth_route
- uri: lb://sooka-auth
- predicates:
- - Path=/api/auth/**
- filters:
- - RewritePath=/auth/(?<segment>.*),/$\{segment}
- - id: admin_route
- uri: lb://test-api
- predicates:
- - Path=/api/test/**
- filters:
- - RewritePath=/test/(?<segment>.*),/$\{segment}
- gate:
- ignore:
- # startWith: /auth/jwt,/app/loan/regist,/app/loan/sendSms,/admin/asyn,/app/loan/common
- startWith: /renren-fast
|