50
src/main/resources/configurations/edge-service.yml
Normal file
50
src/main/resources/configurations/edge-service.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
server:
|
||||
port: ${PORT:8080}
|
||||
|
||||
spring:
|
||||
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
|
||||
discovery:
|
||||
locator:
|
||||
enabled: false
|
||||
routes:
|
||||
- id: edge
|
||||
uri: lb://edge-service
|
||||
predicates:
|
||||
- Path=/v3/api-docs/**
|
||||
filters:
|
||||
- RewritePath=/v3/api-docs/(?<path>.*), /$\{path}/v3/api-docs
|
||||
|
||||
- id: timezone-service
|
||||
uri: lb://timezone-service
|
||||
predicates:
|
||||
- Path=/v1/timezone/**, /health/timezone, /timezone/v3/api-docs
|
||||
filters:
|
||||
- RewritePath=/health/timezone, /actuator/health
|
||||
- RewritePath=/timezone/(?<segment>.*), /$\{segment}
|
||||
|
||||
- id: google-service
|
||||
uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080}
|
||||
predicates:
|
||||
- Path=/v1/account/**, /health/google, /google/v3/api-docs
|
||||
filters:
|
||||
- RewritePath=/health/google, /actuator/health
|
||||
- RewritePath=/google/(?<segment>.*), /$\{segment}
|
||||
|
||||
- id: token-service
|
||||
uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080}
|
||||
predicates:
|
||||
- Path=/v1/token/**, /health/backend, /token/v3/api-docs
|
||||
filters:
|
||||
- RewritePath=/health/backend, /actuator/health
|
||||
- RewritePath=/token/(?<segment>.*), /$\{segment}
|
Reference in New Issue
Block a user