Plex websockets error

Hi there,

Moving my setup from nginx to Caddy and I’ve got most things working for Plex except for websockets. I am seeing regular websocket errors in the console/logfile which is preventing notifications and other activities that Plex uses websockets for.

Caddyfile:

plex.domain.com {
gzip
proxy / 192.168.1.3:32400 {
  transparent
   }
}

Error in console:
17/Sep/2018:17:13:07 +0000 [ERROR 502 /:/websockets/notifications] EOF

I’ve tried adding a websocket directive in my Caddyfile as well but doesn’t seem to do anything.

Any thoughts?

Thanks!

Where did you put websocket? Keep in mind there is a difference between the websocket directive and the websocket subdirective. You want the latter - check the proxy docs:

https://caddyserver.com/docs/proxy#presets

Was able to solve it, not sure if it’s the most optimized way to do it, but adding below in case anyone stumbles onto this.

plex.domain.com {
        gzip
        timeouts 1h

        proxy / 192.168.1.3:32400 {
                transparent
                websocket
                keepalive 12
                timeout 1h
        }
}```

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.