Merge pull request #68 from arjunkomath/staging

Update OpenClaw
This commit is contained in:
Arjun Komath
2026-05-06 20:20:01 +10:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ RUN apt-get update \
zip \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g openclaw@2026.5.2
RUN npm install -g openclaw@2026.5.5
RUN npm install -g clawhub@latest
WORKDIR /app
+4
View File
@@ -113,6 +113,8 @@ const INTERNAL_GATEWAY_PORT = Number.parseInt(
process.env.INTERNAL_GATEWAY_PORT ?? "18789",
10,
);
// This is the wrapper's upstream target host, not an OpenClaw --bind mode.
// Railway exposes the Express wrapper on PORT; the gateway stays private.
const INTERNAL_GATEWAY_HOST = process.env.INTERNAL_GATEWAY_HOST ?? "127.0.0.1";
const GATEWAY_TARGET = `http://${INTERNAL_GATEWAY_HOST}:${INTERNAL_GATEWAY_PORT}`;
@@ -354,6 +356,8 @@ async function startGateway() {
"gateway",
"run",
"--bind",
// Intentional for Railway: only the wrapper is public, and it proxies to the
// gateway over loopback while injecting auth.
"loopback",
"--port",
String(INTERNAL_GATEWAY_PORT),