Files
rheinsw-mono-repo/backend/gateway/src/main/resources/application.yml

19 lines
384 B
YAML

server:
port: 8080
spring:
application:
name: gateway
main:
web-application-type: reactive # Set the application type to reactive
cloud:
gateway:
routes:
- id: server
uri: http://${SERVER_HOST:localhost}:8081
predicates:
- Path=/api/**
filters:
- StripPrefix=1
- PreserveHostHeader