Skip to content

Commit 86c8204

Browse files
bump openclaw/openclaw to v2026.3.13 (#22)
* bump openclaw/openclaw to v2026.3.13 * Fix auth --------- Co-authored-by: hcastc00 <hcastc00@users.noreply.github.com>
1 parent c155faa commit 86c8204

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

dappnode_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "openclaw.dnp.dappnode.eth",
33
"version": "0.1.1",
4-
"upstreamVersion": "v2026.3.12",
4+
"upstreamVersion": "v2026.3.13",
55
"upstreamRepo": "openclaw/openclaw",
66
"upstreamArg": "UPSTREAM_VERSION",
77
"shortDescription": "Personal AI assistant gateway with multi-LLM support",

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
context: .
66
dockerfile: Dockerfile
77
args:
8-
UPSTREAM_VERSION: v2026.3.12
8+
UPSTREAM_VERSION: v2026.3.13
99
image: openclaw.dnp.dappnode.eth:0.1.0
1010
container_name: DAppNodePackage-openclaw.dnp.dappnode.eth
1111
restart: unless-stopped

entrypoint.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ mkdir -p "$OPENCLAW_DIR/canvas" "$OPENCLAW_DIR/cron" "$OPENCLAW_DIR/workspace" "
1313
CONFIG_FILE="$OPENCLAW_DIR/openclaw.json"
1414
if [ ! -f "$CONFIG_FILE" ]; then
1515
echo "Creating default OpenClaw config..."
16-
cat > "$CONFIG_FILE" << 'EOF'
16+
cat > "$CONFIG_FILE" << EOF
1717
{
1818
"gateway": {
19-
"bind": "lan",
2019
"port": 18789,
20+
"bind": "lan",
2121
"controlUi": {
2222
"dangerouslyAllowHostHeaderOriginFallback": true,
2323
"allowInsecureAuth": true,
2424
"dangerouslyDisableDeviceAuth": true
25+
},
26+
"auth": {
27+
"token": "${OPENCLAW_GATEWAY_TOKEN:-openclaw}"
2528
}
2629
}
2730
}
@@ -31,25 +34,22 @@ else
3134
const fs = require('fs');
3235
const JSON5 = require('json5');
3336
const configPath = '$CONFIG_FILE';
37+
const envToken = process.env.OPENCLAW_GATEWAY_TOKEN || 'openclaw';
3438
try {
3539
const config = JSON5.parse(fs.readFileSync(configPath, 'utf8'));
36-
const cui = ((config.gateway = config.gateway || {}).controlUi = config.gateway.controlUi || {});
37-
const gw = config.gateway;
40+
const gw = (config.gateway = config.gateway || {});
41+
const cui = (gw.controlUi = gw.controlUi || {});
42+
const auth = (gw.auth = gw.auth || {});
3843
let changed = false;
39-
if (!('bind' in gw)) { gw.bind = 'lan'; changed = true; }
40-
if (!('port' in gw)) { gw.port = 18789; changed = true; }
44+
if (gw.port !== 18789) { gw.port = 18789; changed = true; }
45+
if (gw.bind !== 'lan') { gw.bind = 'lan'; changed = true; }
4146
if (!('dangerouslyAllowHostHeaderOriginFallback' in cui) && !('allowedOrigins' in cui)) {
4247
cui.dangerouslyAllowHostHeaderOriginFallback = true;
4348
changed = true;
4449
}
45-
if (!('allowInsecureAuth' in cui)) {
46-
cui.allowInsecureAuth = true;
47-
changed = true;
48-
}
49-
if (!('dangerouslyDisableDeviceAuth' in cui)) {
50-
cui.dangerouslyDisableDeviceAuth = true;
51-
changed = true;
52-
}
50+
if (!('allowInsecureAuth' in cui)) { cui.allowInsecureAuth = true; changed = true; }
51+
if (!('dangerouslyDisableDeviceAuth' in cui)) { cui.dangerouslyDisableDeviceAuth = true; changed = true; }
52+
if (auth.token !== envToken) { auth.token = envToken; changed = true; }
5353
if (changed) {
5454
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
5555
console.log('Updated OpenClaw config for DAppNode HTTP deployment');

0 commit comments

Comments
 (0)