Securing the editor (HTTPS)
The editor serves plain HTTP. Sessions use an HttpOnly cookie with SameSite=Strict, changing requests need a custom header and the same origin, file names are validated, uploads are size limited and login attempts are rate limited. That does not encrypt the traffic, so for anything but a trusted LAN pick one of these:
- SSH tunnel. Set
web.bind: 127.0.0.1. From your PC runssh -L 8766:127.0.0.1:8766 user@serverand openhttp://localhost:8766. Setweb.public-url: http://localhost:8766so the link printed in chat matches. - Reverse proxy with HTTPS. Put nginx or Caddy in front and forward to
web.port. Setweb.public-urlto the https address. The proxy should sendX-Forwarded-Proto: httpsso the cookie is marked Secure.
# Caddyfile
hud.example.com {
reverse_proxy 127.0.0.1:8766
}Keep web.enabled: false when you are not editing.