Dashboard
cloudify serve # http://localhost:8765 and this machine's IP addresses, any name
cloudify serve --serve-port 9000 # another port
cloudify serve --ssl-certfile cert.pem --ssl-keyfile key.pem # HTTPS
cloudify serve --secure # this machine only, known names only (see Security)
Without --secure, other machines can reach it over plain HTTP: see Security.
To keep it running, make it a service (Linux, macOS) or use Docker.
First run#
- Create the first account. Enter the setup code that
cloudify serveprints (Docker:docker logs cloudify). Passwords need at least 6 characters. - Connect Cloudflare. Click Connect Cloudflare, open the link and click your domain.
- Create a tunnel and add routes on the Tunnels page.
Restarting the dashboard signs everyone out.
Pages#
| Page | Actions |
|---|---|
| Overview | Traffic map and counts. |
| Tunnels | New tunnel, Start/Stop, Start on boot, Add route, edit or remove a route, Check DNS (Recreate / Re-point), Delete, Adopt a tunnel created outside Cloudify. |
| Routes | All hostnames, with search and a domain filter. |
| Domains | Connect domain, Disconnect, DNS cleanup: add an API token (Zone · DNS · Edit) to delete DNS records with their routes. |
| Redundancy | Machines per shared tunnel. Share from this machine downloads an encrypted replica file. Import uploads one with its passphrase. |
| Settings | Change password, Users, connect a domain, update cloudflared, Stop server. |
Every user can manage everything.
Route fields#
- Hostname: wildcards (
*.example.com) are allowed. - Service host:
localhost, another machine's IP address, or a container name in Docker. - Port: the service's local port.
API#
Start with cloudify serve --api-docs and open http://localhost:8765/api/docs.
TOKEN=$(curl -s -X POST http://localhost:8765/auth/login -d 'username=admin' -d 'password=...' | python3 -c 'import json,sys; print(json.load(sys.stdin)["access_token"])')
curl -s -H "Authorization: Bearer $TOKEN" http://localhost:8765/tunnels
Problems#
| Problem | Fix |
|---|---|
| Page does not load from another device | Open the port: sudo ufw allow 8765/tcp, or the security group on AWS or Azure. With --secure, use an SSH tunnel (Security). |
| This dashboard runs in secure mode and can't be opened as ... | Use the IP address or localhost, or add --allowed-host NAME. For quick tunnels: --allowed-host '*.trycloudflare.com' or CLOUDIFY_ALLOWED_HOSTS. |
| Address already in use | Pick another port with --serve-port. |
More: Troubleshooting. Background: The idea behind it.