From 6837c48460fe4070e39dd9da6913617575159b03 Mon Sep 17 00:00:00 2001 From: hcastc00 Date: Sat, 14 Mar 2026 08:11:41 +0000 Subject: [PATCH 1/2] bump openclaw/openclaw to v2026.3.13 --- dappnode_package.json | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dappnode_package.json b/dappnode_package.json index 6710b5a..6b26d84 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -1,7 +1,7 @@ { "name": "openclaw.dnp.dappnode.eth", "version": "0.1.1", - "upstreamVersion": "v2026.3.12", + "upstreamVersion": "v2026.3.13", "upstreamRepo": "openclaw/openclaw", "upstreamArg": "UPSTREAM_VERSION", "shortDescription": "Personal AI assistant gateway with multi-LLM support", diff --git a/docker-compose.yml b/docker-compose.yml index 766dacc..0fc665b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: context: . dockerfile: Dockerfile args: - UPSTREAM_VERSION: v2026.3.12 + UPSTREAM_VERSION: v2026.3.13 image: openclaw.dnp.dappnode.eth:0.1.0 container_name: DAppNodePackage-openclaw.dnp.dappnode.eth restart: unless-stopped From 7e9ce899e02fab750b0bb1efdfd32b82ab19a1e3 Mon Sep 17 00:00:00 2001 From: hcastc00 Date: Tue, 17 Mar 2026 11:31:44 +0100 Subject: [PATCH 2/2] Fix auth --- entrypoint.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6074b9f..11b923b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,15 +13,18 @@ mkdir -p "$OPENCLAW_DIR/canvas" "$OPENCLAW_DIR/cron" "$OPENCLAW_DIR/workspace" " CONFIG_FILE="$OPENCLAW_DIR/openclaw.json" if [ ! -f "$CONFIG_FILE" ]; then echo "Creating default OpenClaw config..." - cat > "$CONFIG_FILE" << 'EOF' + cat > "$CONFIG_FILE" << EOF { "gateway": { - "bind": "lan", "port": 18789, + "bind": "lan", "controlUi": { "dangerouslyAllowHostHeaderOriginFallback": true, "allowInsecureAuth": true, "dangerouslyDisableDeviceAuth": true + }, + "auth": { + "token": "${OPENCLAW_GATEWAY_TOKEN:-openclaw}" } } } @@ -31,25 +34,22 @@ else const fs = require('fs'); const JSON5 = require('json5'); const configPath = '$CONFIG_FILE'; +const envToken = process.env.OPENCLAW_GATEWAY_TOKEN || 'openclaw'; try { const config = JSON5.parse(fs.readFileSync(configPath, 'utf8')); - const cui = ((config.gateway = config.gateway || {}).controlUi = config.gateway.controlUi || {}); - const gw = config.gateway; + const gw = (config.gateway = config.gateway || {}); + const cui = (gw.controlUi = gw.controlUi || {}); + const auth = (gw.auth = gw.auth || {}); let changed = false; - if (!('bind' in gw)) { gw.bind = 'lan'; changed = true; } - if (!('port' in gw)) { gw.port = 18789; changed = true; } + if (gw.port !== 18789) { gw.port = 18789; changed = true; } + if (gw.bind !== 'lan') { gw.bind = 'lan'; changed = true; } if (!('dangerouslyAllowHostHeaderOriginFallback' in cui) && !('allowedOrigins' in cui)) { cui.dangerouslyAllowHostHeaderOriginFallback = true; changed = true; } - if (!('allowInsecureAuth' in cui)) { - cui.allowInsecureAuth = true; - changed = true; - } - if (!('dangerouslyDisableDeviceAuth' in cui)) { - cui.dangerouslyDisableDeviceAuth = true; - changed = true; - } + if (!('allowInsecureAuth' in cui)) { cui.allowInsecureAuth = true; changed = true; } + if (!('dangerouslyDisableDeviceAuth' in cui)) { cui.dangerouslyDisableDeviceAuth = true; changed = true; } + if (auth.token !== envToken) { auth.token = envToken; changed = true; } if (changed) { fs.writeFileSync(configPath, JSON.stringify(config, null, 2)); console.log('Updated OpenClaw config for DAppNode HTTP deployment');