From df57af9e85440cda6e183a7b8a83af71b143def3 Mon Sep 17 00:00:00 2001 From: sinohqb Date: Mon, 17 Aug 2026 03:13:05 +0800 Subject: [PATCH] fix(deploy/t480): remove OPENCLAW_GATEWAY_TOKEN (trusted-proxy conflicts with shared token) openclaw gateway fails to start when trusted-proxy and a shared token are both configured (mutually exclusive). The env var was re-introduced on every deploy because deploy-t480.sh rsyncs the repo compose file. Remove it so the gateway runs in trusted-proxy mode; the agenteval proxy authenticates via x-forwarded-user. --- deploy/t480/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/t480/docker-compose.yml b/deploy/t480/docker-compose.yml index 42955a0..6660dbd 100644 --- a/deploy/t480/docker-compose.yml +++ b/deploy/t480/docker-compose.yml @@ -33,5 +33,7 @@ services: - ../../data/openclaw:/home/node/.openclaw environment: - AGENTEVAL_API_URL=http://agenteval:8000 - - OPENCLAW_GATEWAY_TOKEN=agenteval-openclaw-token-2026 + # 注意:不注入 OPENCLAW_GATEWAY_TOKEN。OpenClaw 认证用 trusted-proxy + # 模式(与 agenteval 代理的 x-forwarded-user 匹配);若同时注入共享 + # token,gateway 会因 trusted-proxy 与 token 互斥而启动失败。 restart: unless-stopped