darkfire514 commited on
Commit
67fcd87
·
verified ·
1 Parent(s): f78f3cd

Upload 7 files

Browse files
Files changed (2) hide show
  1. nginx.conf +3 -1
  2. start.sh +6 -1
nginx.conf CHANGED
@@ -75,7 +75,9 @@ http {
75
  auth_request /oauth2/auth;
76
  error_page 401 = /oauth2/sign_in;
77
 
78
- proxy_pass http://127.0.0.1:18789/;
 
 
79
  proxy_http_version 1.1;
80
  proxy_set_header Upgrade $http_upgrade;
81
  proxy_set_header Connection "upgrade";
 
75
  auth_request /oauth2/auth;
76
  error_page 401 = /oauth2/sign_in;
77
 
78
+ # 移除尾部的斜杠,OpenClaw 可能期望完整的路径
79
+ proxy_pass http://127.0.0.1:18789;
80
+
81
  proxy_http_version 1.1;
82
  proxy_set_header Upgrade $http_upgrade;
83
  proxy_set_header Connection "upgrade";
start.sh CHANGED
@@ -59,7 +59,12 @@ echo "Starting ttyd on 127.0.0.1:7681..."
59
  ttyd -p 7681 -i 127.0.0.1 -W bash &
60
  TTYD_PID=$!
61
 
62
- # 2. 启动 oauth2-proxy (本地监听 4180)
 
 
 
 
 
63
  # 回退到稳定模式:根据环境变量智能选择单个 Provider
64
  echo "Starting oauth2-proxy on 127.0.0.1:4180..."
65
 
 
59
  ttyd -p 7681 -i 127.0.0.1 -W bash &
60
  TTYD_PID=$!
61
 
62
+ # 2. OpenClaw 已在降级方案中移除预启动
63
+ # (保留手动启动逻辑作为注释参考)
64
+ # export OPENCLAW_AUTH_DISABLE=true
65
+ # openclaw gateway run &
66
+
67
+ # 3. 启动 oauth2-proxy (本地监听 4180)
68
  # 回退到稳定模式:根据环境变量智能选择单个 Provider
69
  echo "Starting oauth2-proxy on 127.0.0.1:4180..."
70