fix(gateway): keep production app ports private
This commit is contained in:
@@ -337,6 +337,9 @@ export async function startGateway(opts: GatewayOptions): Promise<RunningGateway
|
||||
env: {
|
||||
...process.env,
|
||||
PORT: String(appPort),
|
||||
// App ports are private gateway internals. Loopback prevents
|
||||
// clients from bypassing gateway auth and edge middleware.
|
||||
WRNEXUS_HOSTNAME: "127.0.0.1",
|
||||
WRNEXUS_ENV: environment,
|
||||
WRNEXUS_APP_NAME: app.name,
|
||||
WRNEXUS_APP_ORIGIN: app.publicOrigin ?? `http://${app.domains[0]}:${port}`,
|
||||
|
||||
Reference in New Issue
Block a user