Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dappnode_package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 14 additions & 14 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
}
}
Expand All @@ -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');
Expand Down
Loading