123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- server:
- port: 8080
- eureka:
- client:
- register-with-eureka: false # 유레카 클라이언트로 등록할지 여부
- serviceUrl:
- defaultZone: ${EUREKA} # 유레카 서버 주소
- healthcheck:
- enabled: true
- spring:
- application:
- name: spring-cloud-gateway
- zipkin:
- baseUrl: ${ZIPKIN} # zipkin 주소
- sleuth:
- sampler:
- probability: 1 # 보내는 요청을 얼마나 집계할건지 (0.1이면 보내는 요청의 10퍼센트를 집계)
- cloud:
- loadbalancer:
- ribbon:
- enabled: false
- gateway:
- discovery:
- locator:
- enabled: true
- default-filters:
- - name: CircuitBreaker # fallback을 연결시키는 부분
- args:
- name: fetchIngredients
- fallbackUri: forward:/fallback
- httpclient:
- connect-timeout: 5000
- response-timeout: 5000ms
- globalcors:
- corsConfigurations:
- "[/**]":
- allowedOrigins: "*"
- allowedMethods: "*"
- routes:
- - id: icd-search # 서비스id로 라우팅 설정
- uri: lb://ICD-SEARCH # lb를 붙여서 로드밸런싱을 활성화
- predicates:
- - Path=/icd/** # icd/로 오는 요청을 해당 id로 라우팅
- management:
- endpoints:
- web:
- exposure:
- include: "*"
- logging:
- level:
- root: WARN
- com.idatabank.springgateway: DEBUG
- reactor.netty.http.server.AccessLog: INFO
|