76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
eureka:
|
|
client:
|
|
register-with-eureka: true
|
|
fetch-registry: true
|
|
service-url:
|
|
defaultZone: http://eureka-service.web:8761/eureka
|
|
instance:
|
|
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
|
|
|
|
info:
|
|
application:
|
|
name: ${spring.application.name}
|
|
version: '@project.version@'
|
|
spring-cloud-version: '@spring-cloud.version@'
|
|
spring-boot-version: '@project.parent.version@'
|
|
|
|
server:
|
|
port: ${PORT:8080}
|
|
shutdown: graceful
|
|
error:
|
|
include-message: on_param
|
|
include-stacktrace: on_param
|
|
|
|
sentry:
|
|
dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528
|
|
environment: edge-service
|
|
|
|
# Set traces_sample_rate to 1.0 to capture 100%
|
|
# of transactions for tracing.
|
|
# We recommend adjusting this value in production.
|
|
tracesSampleRate: 1.0
|
|
|
|
spring:
|
|
application:
|
|
name: edge-service
|
|
cloud:
|
|
gateway:
|
|
default-filters:
|
|
- name: Retry
|
|
args:
|
|
retries: 3
|
|
methods: GET
|
|
series: SERVER_ERROR
|
|
exceptions: java.io.IOException, java.util.concurrent.TimeoutException
|
|
backoff:
|
|
firstBackoff: 50ms
|
|
maxBackoff: 5000ms
|
|
routes:
|
|
- id: eureka-service
|
|
uri: lb://eureka-service
|
|
predicates:
|
|
- Path=/discovery/**
|
|
filters:
|
|
- StripPrefix=1
|
|
|
|
- id: timezone-service
|
|
uri: lb://timezone-service
|
|
predicates:
|
|
- Path=/v1/timezone/**, /health/timezone
|
|
filters:
|
|
- RewritePath=/health/timezone, /actuator/health
|
|
|
|
- id: google-service
|
|
uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080}
|
|
predicates:
|
|
- Path=/v1/account/**, /health/google
|
|
filters:
|
|
- RewritePath=/health/google, /actuator/health
|
|
|
|
- id: token-service
|
|
uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080}
|
|
predicates:
|
|
- Path=/v1/token/**, /health/backend
|
|
filters:
|
|
- RewritePath=/health/backend, /actuator/health
|