How do I deploy behind reverse proxy

I’m trying to deploy a Panel application on k8s and using ingress (reverse proxy). I will be serving the app at domain/us-trading/panel.

I do this using panel.serve with a prefix.

image

After working around other Panel “bugs” reported on Github the one thing outstanding is websocket connection.

WebSocket connection to 'wss://...../ws' failed: Error during WebSocket handshake: Unexpected response code: 403

Any ideas how to solve this?

SOLVED

The problem was not related to reverse proxying, k8s or anything. I just needed to allow the host :slight_smile:

BOKEH_ALLOW_WS_ORIGIN=name-of-domain

https://docs.bokeh.org/en/latest/docs/user_guide/server.html#websocket-origin