Make gateway host configurable via SERVER_HOST environment variable

This commit is contained in:
2025-06-29 18:50:30 +09:00
parent 41da04d681
commit d3389b0343
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
<envs> <envs>
<env name="HCAPTCHA_SECRET" value="10000000-ffff-ffff-ffff-000000000001" /> <env name="HCAPTCHA_SECRET" value="10000000-ffff-ffff-ffff-000000000001" />
<env name="USE_LOCAL_GATEWAY" value="true" /> <env name="USE_LOCAL_GATEWAY" value="true" />
<env name="SERVER_HOST" value="localhost" />
</envs> </envs>
<method v="2" /> <method v="2" />
</configuration> </configuration>

View File

@@ -11,7 +11,7 @@ spring:
gateway: gateway:
routes: routes:
- id: server - id: server
uri: http://localhost:8081 uri: http://${SERVER_HOST:localhost}:8081
predicates: predicates:
- Path=/api/** - Path=/api/**
filters: filters: