application.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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} # zipkin 주소
  15. sleuth:
  16. sampler:
  17. probability: 1 # 보내는 요청을 얼마나 집계할건지 (0.1이면 보내는 요청의 10퍼센트를 집계)
  18. cloud:
  19. loadbalancer:
  20. ribbon:
  21. enabled: false
  22. gateway:
  23. discovery:
  24. locator:
  25. enabled: true
  26. default-filters:
  27. - name: CircuitBreaker # fallback을 연결시키는 부분
  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 # 서비스id로 라우팅 설정
  41. uri: lb://ICD-SEARCH # lb를 붙여서 로드밸런싱을 활성화
  42. predicates:
  43. - Path=/icd/** # icd/로 오는 요청을 해당 id로 라우팅
  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