123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- server:
- port: 8080
- eureka:
- client:
- register-with-eureka: false
- serviceUrl:
- defaultZone: ${EUREKA}
- healthcheck:
- enabled: true
- spring:
- application:
- name: spring-cloud-gateway
- 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
|