fix(deploy/t480): remove OPENCLAW_GATEWAY_TOKEN (trusted-proxy conflicts with shared token)
All checks were successful
CI / test (push) Successful in 3m42s

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.
This commit is contained in:
sinohqb 2026-08-17 03:13:05 +08:00
parent 8e65e2e7b0
commit df57af9e85

View File

@ -33,5 +33,7 @@ services:
- ../../data/openclaw:/home/node/.openclaw - ../../data/openclaw:/home/node/.openclaw
environment: environment:
- AGENTEVAL_API_URL=http://agenteval:8000 - AGENTEVAL_API_URL=http://agenteval:8000
- OPENCLAW_GATEWAY_TOKEN=agenteval-openclaw-token-2026 # 注意:不注入 OPENCLAW_GATEWAY_TOKEN。OpenClaw 认证用 trusted-proxy
# 模式(与 agenteval 代理的 x-forwarded-user 匹配);若同时注入共享
# tokengateway 会因 trusted-proxy 与 token 互斥而启动失败。
restart: unless-stopped restart: unless-stopped