Skip to content

Commit 4e50887

Browse files
committed
Configure gateway service hosts through environment
1 parent f5eeefe commit 4e50887

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/resources/application.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ spring:
1717
enabled: false
1818
routes:
1919
- id: notification-service-route
20-
uri: http://${sm://NOTIFICATION_HOST}:8080
20+
uri: http://${NOTIFICATION_HOST:localhost}:8080
2121
predicates:
2222
- Path=/api/v1/notification/**
2323
filters:
2424
- AddRequestHeader=X-Request-Source, Gateway
2525
- id: ledger-service-route
26-
uri: http://${sm://LEDGER_HOST}:8080
26+
uri: http://${LEDGER_HOST:localhost}:8080
2727
predicates:
2828
- Path=/api/v1/ledger-entry/**
2929
filters:
3030
- StripPrefix=2
3131
- AddRequestHeader=X-Request-Source, Gateway
3232
- id: backend-api-route
33-
uri: http://${sm://BACKEND_HOST}:8080
33+
uri: http://${BACKEND_HOST:localhost}:8080
3434
predicates:
3535
- Path=/api/**
3636
filters:
3737
- AddRequestHeader=X-Request-Source, Gateway
3838
- id: backend-resource-route
39-
uri: http://${sm://BACKEND_HOST}:8080
39+
uri: http://${BACKEND_HOST:localhost}:8080
4040
predicates:
4141
- Path=/resources/files/**
4242
filters:

0 commit comments

Comments
 (0)