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 /sockets.io/
. Does anyone here use Caddy as a reverse proxy and wouldn’t mind helping?
Thanks!
If you use Caddy 2, a simple reverse_proxy
should do the trick. According to https://caddyserver.com/docs/caddyfile/directives/reverse_proxy, 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.