application.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. server:
  2. port: 8080
  3. eureka:
  4. client:
  5. register-with-eureka: false
  6. serviceUrl:
  7. defaultZone: ${EUREKA}
  8. healthcheck:
  9. enabled: true
  10. spring:
  11. application:
  12. name: spring-cloud-gateway
  13. cloud:
  14. loadbalancer:
  15. ribbon:
  16. enabled: false
  17. gateway:
  18. discovery:
  19. locator:
  20. enabled: true
  21. default-filters:
  22. - name: CircuitBreaker
  23. args:
  24. name: fetchIngredients
  25. fallbackUri: forward:/fallback
  26. httpclient:
  27. connect-timeout: 5000
  28. response-timeout: 5000ms
  29. globalcors:
  30. corsConfigurations:
  31. '[/**]':
  32. allowedOrigins: "*"
  33. allowedMethods: "*"
  34. routes:
  35. - id: icd-search
  36. uri: lb://ICD-SEARCH
  37. predicates:
  38. - Path=/icd/**
  39. management:
  40. endpoints:
  41. web:
  42. exposure:
  43. include: "*"
  44. logging:
  45. level:
  46. root: WARN
  47. com.idatabank.springgateway: DEBUG
  48. reactor.netty.http.server.AccessLog: INFO
  49. #docker run --rm -p 8080:8080 -e EUREKA=192.168.99.100:8761 --name gateway spring-cloud-gateway