What this solves
If your app prints something like:https://<instance-id>-8888.tenants.hivecompute.ai) shows Bad Gateway, it likely means:
- The app is only available locally (localhost)
- HTTPS reverse proxy can’t reach it
Step 1 – Start your server (pick one)
| If you already have an app | If you just want to browse files |
|---|---|
SSH into the instance and launch your app on port 8888 with host 0.0.0.0. Example (Flask): app.run(host="0.0.0.0", port=8888) | SSH in and run a one-off file server: python3 -m http.server 8888 --bind 0.0.0.0 |
Step 2 – Bind to 0.0.0.0, not 127.0.0.1
Visithttps://<instance-id>-8888.tenants.hivecompute.ai.If you switched ports, replace
8888 in both the URL and your app command.
Step 3 – Open the HTTPS URL
Once your app is running and listening on the correct interface and port, go to:- Double-check your app is running
- Use
curl http://localhost:8888from inside the instance to test - Restart your app if needed