little-room-12575
06/04/2026, 2:27 PMtext
SANDBOX_RUNTIME_CONTAINER_IMAGE=<http://ghcr.io/openhands/runtime:1.7|ghcr.io/openhands/runtime:1.7>
SANDBOX_VSCODE_PORT=41234
SANDBOX_KEEP_RUNTIME=false
LOG_ALL_EVENTS=true
I also tested additional variables like these, but they did not solve the problem and sometimes even caused a general network error in the UI:
text
SANDBOX_RUNTIME_BINDING_ADDRESS=0.0.0.0
SANDBOX_CONTAINER_URL_PATTERN=<https://sandbox.example.com>
WEB_HOST=<http://openhands.example.com|openhands.example.com>
OH_WEB_URL=<https://openhands.example.com>
I also noticed frontend-related defaults like:
text
VITE_BACKEND_BASE_URL=localhost:3000
VITE_BACKEND_HOST=127.0.0.1:3000
So now I am unsure what the correct setup is.
My goal is very simple:
• access OpenHands from outside through my domain
• keep Cloudflare Tunnel + Access Policy in front of it
• make sure OpenHands can still communicate with its sandbox correctly
What environment variables / network setup / reverse proxy setup are required for this to work properly?
If anyone has a working example for OpenHands behind Cloudflare Tunnel, that would help a lot.wooden-umbrella-84098
06/04/2026, 3:46 PMwooden-umbrella-84098
06/04/2026, 3:46 PMlittle-room-12575
06/04/2026, 5:01 PMwooden-umbrella-84098
06/04/2026, 5:07 PMwooden-umbrella-84098
06/04/2026, 5:07 PM