Help with Caddy as reverse proxy

My version of HedgeDoc is: 1.8.2

I use Caddy as reverse proxy and I’m working on getting hedgedoc setup, but I’m unsure how to handle the websocket Upgrade requests at path / Does anyone here use Caddy as a reverse proxy and wouldn’t mind helping?


If you use Caddy 2, a simple reverse_proxy should do the trick. According to, that handles websockets and also automatically sets X-Forwarded-For and X-Forwarded-Proto.

In fact, for development, I often use sudo caddy reverse-proxy --from hedgedoc.localhost --to localhost:3000 , which just works.