openclaw/render.yaml
Ojus Save e56581caf2 fix(render): use startup script to configure trustedProxies
The key difference from the wrapper:
- Wrapper strips proxy headers before forwarding to internal gateway
- Direct deployment needs trustedProxies config to trust Render's proxy IPs

This script:
1. Creates config with gateway.trustedProxies for Render's internal IPs
2. Sets allowInsecureAuth for Control UI access
3. Starts gateway with token auth
2026-01-28 10:10:12 -08:00

20 lines
444 B
YAML

services:
- type: web
name: moltbot
runtime: docker
plan: starter
dockerCommand: /bin/sh scripts/render-start.sh
envVars:
- key: PORT
value: "8080"
- key: CLAWDBOT_GATEWAY_TOKEN
sync: false
- key: CLAWDBOT_STATE_DIR
value: /data/.clawdbot
- key: CLAWDBOT_WORKSPACE_DIR
value: /data/workspace
disk:
name: moltbot-data
mountPath: /data
sizeGB: 1