application.yml 682 B

123456789101112131415161718192021222324252627282930313233
  1. server:
  2. port: 8080
  3. eureka:
  4. client:
  5. service-url:
  6. defaultZone: http://${EUREKA}/eureka
  7. spring:
  8. application:
  9. name: spring-cloud-gateway
  10. cloud:
  11. gateway:
  12. discovery:
  13. locator:
  14. enabled: true
  15. globalcors:
  16. corsConfigurations:
  17. '[/**]':
  18. allowedOrigins: "*"
  19. allowedMethods: "*"
  20. routes:
  21. - id: icd-search
  22. uri: lb://ICD-SEARCH
  23. predicates:
  24. - Path=/icd/**
  25. logging:
  26. level:
  27. root: WARN
  28. com.idatabank.springgateway: DEBUG
  29. #docker run --rm -p 8080:8080 -e EUREKA=192.168.99.100:8761 --name gateway --network api_bridge spring-cloud-gateway