he1237596 commited on
Commit
3321708
·
verified ·
1 Parent(s): 1b081a7

Update start-openclaw.sh

Browse files
Files changed (1) hide show
  1. start-openclaw.sh +12 -3
start-openclaw.sh CHANGED
@@ -1,4 +1,5 @@
1
  #!/bin/bash
 
2
  set -e
3
 
4
  # 1. 补全目录
@@ -32,10 +33,17 @@ cat > /root/.openclaw/openclaw.json <<EOF
32
  "restart": true
33
  },
34
  "gateway": {
35
- "mode": "local", "bind": "lan", "port": $PORT,
 
 
36
  "trustedProxies": ["0.0.0.0/0"],
37
  "auth": { "mode": "token", "token": "$OPENCLAW_GATEWAY_PASSWORD" },
38
- "controlUi": { "allowInsecureAuth": true }
 
 
 
 
 
39
  }
40
  }
41
  EOF
@@ -45,4 +53,5 @@ EOF
45
 
46
  # 6. 运行
47
  openclaw doctor --fix
48
- exec openclaw gateway run --port $PORT
 
 
1
  #!/bin/bash
2
+
3
  set -e
4
 
5
  # 1. 补全目录
 
33
  "restart": true
34
  },
35
  "gateway": {
36
+ "mode": "local",
37
+ "bind": "lan",
38
+ "port": $PORT,
39
  "trustedProxies": ["0.0.0.0/0"],
40
  "auth": { "mode": "token", "token": "$OPENCLAW_GATEWAY_PASSWORD" },
41
+ "controlUi": {
42
+ "enabled": true,
43
+ "allowInsecureAuth": true,
44
+ "dangerouslyDisableDeviceAuth": true,
45
+ "dangerouslyAllowHostHeaderOriginFallback": true
46
+ },
47
  }
48
  }
49
  EOF
 
53
 
54
  # 6. 运行
55
  openclaw doctor --fix
56
+
57
+ exec openclaw gateway run --port $PORT