1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- server:
- port: 8080
- eureka:
- client:
- register-with-eureka: false
- serviceUrl:
- defaultZone: ${EUREKA}
- healthcheck:
- enabled: true
- spring:
- application:
- name: spring-cloud-gateway
- zipkin:
- baseUrl: ${ZIPKIN}
- sleuth:
- sampler:
- probability: 1
- cloud:
- loadbalancer:
- ribbon:
- enabled: false
- gateway:
- discovery:
- locator:
- enabled: true
- default-filters:
- - name: CircuitBreaker
- args:
- name: fetchIngredients
- fallbackUri: forward:/fallback
- httpclient:
- connect-timeout: 5000
- response-timeout: 5000ms
- globalcors:
- corsConfigurations:
- '[/**]':
- allowedOrigins: "*"
- allowedMethods: "*"
- routes:
- - id: icd-search
- uri: lb://ICD-SEARCH
- predicates:
- - Path=/icd/**
- management:
- endpoints:
- web:
- exposure:
- include: "*"
- logging:
- level:
- root: WARN
- com.idatabank.springgateway: DEBUG
- reactor.netty.http.server.AccessLog: INFO
- #docker run --rm -p 8080:8080 -e EUREKA=192.168.99.100:8761 --name gateway spring-cloud-gateway
|