Using it

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:

  1. SSH tunnel. Set web.bind: 127.0.0.1. From your PC run ssh -L 8766:127.0.0.1:8766 user@server and open http://localhost:8766. Set web.public-url: http://localhost:8766 so the link printed in chat matches.
  2. Reverse proxy with HTTPS. Put nginx or Caddy in front and forward to web.port. Set web.public-url to the https address. The proxy should send X-Forwarded-Proto: https so 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.