Skip to content

Commit 55e7bf9

Browse files
committed
added routing for /sandbox/api
1 parent 708bc1e commit 55e7bf9

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

api-gateway/src/main/resources/application-dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ gateway:
33
url: http://localhost:5800
44
frontend:
55
url: http://localhost:5810
6+
sandbox:
7+
url: http://localhost:5400
68
spring:
79
security:
810
oauth2:

api-gateway/src/main/resources/application.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ gateway:
99
url: http://frontend:5810
1010
grafana:
1111
url: http://grafana:9100
12+
sandbox:
13+
url: http://sandbox:5400
1214
management:
1315
endpoints:
1416
web:
@@ -50,6 +52,14 @@ spring:
5052
uri: ${gateway.grafana.url}
5153
predicates:
5254
- Path=/grafana/**
55+
- id: sandbox-api_route
56+
uri: ${gateway.sandbox.url}
57+
predicates:
58+
- Path=/sandbox/api/**
59+
filters:
60+
# If SESSION cookie is passed to downstream, it is then removed, because downstream discards it
61+
- RemoveRequestHeader=Cookie
62+
- ConvertAuthorizationHeader=
5363

5464
---
5565
spring:

0 commit comments

Comments
 (0)