fix(openclaw): add token binding to gateway auth config

Subagents require the gateway token to be explicitly defined in the config to inherit it correctly. Interpolate the OPENCLAW_GATEWAY_TOKEN env variable in the auth config.
This commit is contained in:
ashisgreat22 2026-03-20 22:35:27 +01:00
parent 262887e5ea
commit 631a874c75

View file

@ -4,7 +4,8 @@
"bind": "loopback", "bind": "loopback",
"trustedProxies": ["::1", "127.0.0.1", "10.88.0.0/16", "10.89.0.0/16"], "trustedProxies": ["::1", "127.0.0.1", "10.88.0.0/16", "10.89.0.0/16"],
"auth": { "auth": {
"mode": "token" "mode": "token",
"token": "${OPENCLAW_GATEWAY_TOKEN}"
}, },
"controlUi": { "controlUi": {
"dangerouslyAllowHostHeaderOriginFallback": true, "dangerouslyAllowHostHeaderOriginFallback": true,