application.yml 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. server:
  2. port: 5509
  3. spring:
  4. application:
  5. name: sooka-gateway
  6. cloud:
  7. nacos:
  8. discovery:
  9. server-addr: 172.17.5.4:8848
  10. # server-addr: 10.0.51.4:8848
  11. gateway:
  12. discovery:
  13. locator:
  14. enabled: true
  15. lower-case-service-id: true #发现服务命名是否要转换为小写
  16. routes:
  17. - id: auth_route
  18. uri: lb://sooka-auth
  19. predicates:
  20. - Path=/api/auth/**
  21. filters:
  22. - RewritePath=/auth/(?<segment>.*),/$\{segment}
  23. - id: admin_route
  24. uri: lb://test-api
  25. predicates:
  26. - Path=/api/test/**
  27. filters:
  28. - RewritePath=/test/(?<segment>.*),/$\{segment}
  29. gate:
  30. ignore:
  31. # startWith: /auth/jwt,/app/loan/regist,/app/loan/sendSms,/admin/asyn,/app/loan/common
  32. startWith: /renren-fast