application.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. zipkin:
  14. baseUrl: ${ZIPKIN}
  15. sleuth:
  16. sampler:
  17. probability: 1
  18. cloud:
  19. loadbalancer:
  20. ribbon:
  21. enabled: false
  22. gateway:
  23. discovery:
  24. locator:
  25. enabled: true
  26. default-filters:
  27. - name: CircuitBreaker
  28. args:
  29. name: fetchIngredients
  30. fallbackUri: forward:/fallback
  31. httpclient:
  32. connect-timeout: 5000
  33. response-timeout: 5000ms
  34. globalcors:
  35. corsConfigurations:
  36. '[/**]':
  37. allowedOrigins: "*"
  38. allowedMethods: "*"
  39. routes:
  40. - id: icd-search
  41. uri: lb://ICD-SEARCH
  42. predicates:
  43. - Path=/icd/**
  44. management:
  45. endpoints:
  46. web:
  47. exposure:
  48. include: "*"
  49. logging:
  50. level:
  51. root: WARN
  52. com.idatabank.springgateway: DEBUG
  53. reactor.netty.http.server.AccessLog: INFO
  54. #docker run --rm -p 8080:8080 -e EUREKA=192.168.99.100:8761 --name gateway spring-cloud-gateway