Update start-openclaw.sh
Browse files- start-openclaw.sh +9 -30
start-openclaw.sh
CHANGED
|
@@ -37,7 +37,14 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 37 |
}
|
| 38 |
}
|
| 39 |
},
|
| 40 |
-
"agents": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
"commands": {
|
| 42 |
"restart": true
|
| 43 |
},
|
|
@@ -51,32 +58,4 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 51 |
"enabled": true,
|
| 52 |
"allowInsecureAuth": true,
|
| 53 |
"dangerouslyDisableDeviceAuth": true,
|
| 54 |
-
"
|
| 55 |
-
"allowedOrigins": ["*"]
|
| 56 |
-
}
|
| 57 |
-
}
|
| 58 |
-
}
|
| 59 |
-
EOF
|
| 60 |
-
|
| 61 |
-
# 5. 生成 auth-profiles.json
|
| 62 |
-
cat > /root/.openclaw/agents/main/agent/auth-profiles.json <<EOF
|
| 63 |
-
{
|
| 64 |
-
"profiles": {
|
| 65 |
-
"default": {
|
| 66 |
-
"providers": {
|
| 67 |
-
"ollama": {
|
| 68 |
-
"apiKey": "ollama"
|
| 69 |
-
}
|
| 70 |
-
}
|
| 71 |
-
}
|
| 72 |
-
},
|
| 73 |
-
"activeProfile": "default"
|
| 74 |
-
}
|
| 75 |
-
EOF
|
| 76 |
-
|
| 77 |
-
# 6. 启动定时备份 (每 1 小时)
|
| 78 |
-
(while true; do sleep 3600; python3 /app/sync.py backup; done) &
|
| 79 |
-
|
| 80 |
-
# 7. 运行
|
| 81 |
-
openclaw doctor --fix
|
| 82 |
-
exec openclaw gateway run --port $PORT
|
|
|
|
| 37 |
}
|
| 38 |
}
|
| 39 |
},
|
| 40 |
+
"agents": {
|
| 41 |
+
"defaults": {
|
| 42 |
+
"model": { "primary": "ollama/qwen3.5:2b" },
|
| 43 |
+
"compaction": {
|
| 44 |
+
"enabled": false
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
},
|
| 48 |
"commands": {
|
| 49 |
"restart": true
|
| 50 |
},
|
|
|
|
| 58 |
"enabled": true,
|
| 59 |
"allowInsecureAuth": true,
|
| 60 |
"dangerouslyDisableDeviceAuth": true,
|
| 61 |
+
"dangerouslyAllowHostHeaderOriginFallbac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|