From 62e14e0df6ba617eaaa70394127bcd2539549030 Mon Sep 17 00:00:00 2001 From: ms Date: Mon, 9 Mar 2026 13:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=20OpenClaw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/openclaw/2026.3.7/config/openclaw.json | 24 ++++++++++++++++++++ apps/openclaw/2026.3.7/docker-compose.yml | 25 --------------------- apps/openclaw/2026.3.7/scripts/init.sh | 4 ++++ apps/openclaw/2026.3.7/scripts/upgrade.sh | 2 ++ 4 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 apps/openclaw/2026.3.7/config/openclaw.json diff --git a/apps/openclaw/2026.3.7/config/openclaw.json b/apps/openclaw/2026.3.7/config/openclaw.json new file mode 100644 index 000000000..d328beec5 --- /dev/null +++ b/apps/openclaw/2026.3.7/config/openclaw.json @@ -0,0 +1,24 @@ +{ + "gateway": { + "mode": "local", + "controlUi": { + "dangerouslyAllowHostHeaderOriginFallback": true + } + }, + "agents": { + "defaults": { + "workspace": "/home/node/.openclaw/workspace" + }, + "list": [ + { + "id": "main", + "workspace": "/home/node/.openclaw/workspace", + "identity": { + "name": "Clawd", + "theme": "helpful assistant", + "emoji": "🦞" + } + } + ] + } +} diff --git a/apps/openclaw/2026.3.7/docker-compose.yml b/apps/openclaw/2026.3.7/docker-compose.yml index 5633fafe3..101c6a367 100644 --- a/apps/openclaw/2026.3.7/docker-compose.yml +++ b/apps/openclaw/2026.3.7/docker-compose.yml @@ -46,28 +46,3 @@ services: timeout: 5s retries: 5 start_period: 20s - - openclaw-cli: - depends_on: - - openclaw - image: ghcr.io/openclaw/openclaw:2026.3.7 - container_name: ${CONTAINER_NAME}-cli - network_mode: "service:openclaw" - cap_drop: - - NET_RAW - - NET_ADMIN - security_opt: - - no-new-privileges:true - user: node:node - stdin_open: true - tty: true - init: true - entrypoint: [ "node", "dist/index.js" ] - volumes: - - ${OPENCLAW_ROOT_PATH}/data/config:/home/node/.openclaw - - ${OPENCLAW_ROOT_PATH}/data/workspace:/home/node/.openclaw/workspace - environment: - - TZ=Asia/Shanghai - - HOME=/home/node - - TERM=xterm-256color - - BROWSER=echo diff --git a/apps/openclaw/2026.3.7/scripts/init.sh b/apps/openclaw/2026.3.7/scripts/init.sh index 07fb8c3fe..d3b74ec08 100644 --- a/apps/openclaw/2026.3.7/scripts/init.sh +++ b/apps/openclaw/2026.3.7/scripts/init.sh @@ -10,6 +10,10 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + cp ./config/openclaw.json "$OPENCLAW_ROOT_PATH/data/config/openclaw.json" + + chown -R 1000:1000 "$OPENCLAW_ROOT_PATH" + echo "Check Finish." else diff --git a/apps/openclaw/2026.3.7/scripts/upgrade.sh b/apps/openclaw/2026.3.7/scripts/upgrade.sh index 07fb8c3fe..09c2c9349 100644 --- a/apps/openclaw/2026.3.7/scripts/upgrade.sh +++ b/apps/openclaw/2026.3.7/scripts/upgrade.sh @@ -10,6 +10,8 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + chown -R 1000:1000 "$OPENCLAW_ROOT_PATH" + echo "Check Finish." else