December 5, 2022, 6:31am
Hello! I have configured the server with reverse proxy, but I have a question because of a problem with the web socket.
I succeeded in receiving a template using server_document from bokeh, but when providing a web socket to a user, I have to provide it with “wss”, but there is a problem with providing it with “ws”. (Other urls are normal at https.)
I’ll be waiting for the reply.
December 5, 2022, 7:29am
I want to run the websocket with http → ws, https → wss according to x-forwarded-proto.
December 5, 2022, 5:51pm
@tp7019 It’s not possible to speculate about anything at all without more details, e.g. your nginx configuration, and the command used to start the Bokeh server, at a minimum.
December 6, 2022, 12:49am
bokeh runs with “python main.py”, and the code is shown in the image below.
there are four nginx, and the image below is on of them.
I actually loaded js, css file, but seems to be a problem when determining the websocket protocol in the ‘bokeh.min.js’ file
December 6, 2022, 5:30pm
@tp7019 I think you are missing some necessary configuration for nginx to terminate SSL successfully in front of Bokeh. Please see
March 6, 2023, 5:30pm
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.