Remote access
The container listens on 127.0.0.1:8787 only. Pick one way to reach it from elsewhere. The dashboard
gives shell access, so always use HTTPS from the internet.
Built-in HTTPS (Caddy)
Section titled “Built-in HTTPS (Caddy)”For a server with a public IP and a domain pointing to it:
./install.sh --domain hub.example.com # or set these in .env:# COMPOSE_PROFILES=https# HERMITHUB_DOMAIN=hub.example.com# PUBLIC_ORIGIN=https://hub.example.com# TRUST_PROXY=1docker compose up -dCaddy gets a Let’s Encrypt certificate and renews it. Ports 80 and 443 must be free and reachable.
Your own reverse proxy
Section titled “Your own reverse proxy”WebSockets (/ws/…) must be forwarded. Set PUBLIC_ORIGIN if the proxy changes the Host header, and
TRUST_PROXY=1 so failed-login lockouts apply to the real client IP rather than the proxy’s. Without it,
forwarded headers are ignored (anyone could fake them); all logins then count as the proxy’s IP.
Caddy:
hub.example.com { encode gzip zstd reverse_proxy 127.0.0.1:8787}nginx:
server { listen 443 ssl http2; server_name hub.example.com; # ssl_certificate ...;
client_max_body_size 200m; # file uploads
location / { proxy_pass http://127.0.0.1:8787; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_read_timeout 1d; }}If the proxy runs in another container, attach it to the hub’s network or use HERMITHUB_BIND=0.0.0.0 with a firewall.
Cloudflare Tunnel
Section titled “Cloudflare Tunnel”No open ports, and Cloudflare Access can add a second login (recommended):
Standalone install on a laptop, no account or domain needed:
hermithub tunnel # prints https://<random>.trycloudflare.com until you press Ctrl+CIt downloads cloudflared into ~/.hermithub/bin on first use (or uses the one on your PATH). The address is random
and changes on every run; for a fixed address use a named tunnel or Tailscale. Set a strong password and enable 2FA
first: anyone with the link reaches the login page.
Manual alternatives:
cloudflared tunnel --url http://localhost:8787 # quick test# or a named tunnel with ingress: service: http://localhost:8787Set PUBLIC_ORIGIN=https://<your-hostname> and TRUST_PROXY=cloudflare in .env.
Tailscale / VPN
Section titled “Tailscale / VPN”Install Tailscale on the host and set HERMITHUB_BIND to the host’s Tailscale IP (or 0.0.0.0 with a firewall),
or use tailscale serve 8787.
SSH tunnel
Section titled “SSH tunnel”From your computer:
ssh -L 8787:localhost:8787 user@serverThen open http://localhost:8787.