Hi,
I’m accessing paraview visualizer via ngrok using https.
I have to allow mixed content in Chrome bc visualizer uses apparently ws:/ and not wss:/
Is there a way to enable wss for visualizer?
Or what’s your recommendation to run visualizer via ngrok?
Although, since you are running with ParaView, SSL is not available within pvpython due to security reason. So you will need to use a reverse proxy where you run your visualizer to serve its content over https/wss. Something like Apache, NGINX, traefik…
Hi Sebastien,
Thank you for the quick reply!
Very much appreciated.
Yea, I tried to reverse proxy it with nginx, apache, and a custom one without success.
One issue is that visualizer doesn’t seem to accept POST requests that show up when running https and I don’t understand enough of the underlying technology. I just wanna use paraview over the web in a secure way
I have tried to rewrite it to GET without success.
The main issue is that it’s an https connection from the browser through the ngrok tunnel but then visualizer establishes a non secure web socket somehow which is not allowed.
The easiest would be that visualizer uses wss I think.
ParaView Web and trame application usually only serve static content and everything else go through websocket. (The post request can be ignored as it is for session launching when a launcher is available)
Since Visualizer is old, the auto detection of protocol has a bug that was fixed maybe a year or so ago for trame. Because of that bug, you will need to manually provide the ws path in the url.
So for example if you were reaching the application with the following url https://my.domain.com/visualizer/ you should add a query to specify the ws connection.
Oh I see. I understand now.
I installed paraview with dnf. Seems the bug fix didn’t make it to the repo.
What’s the release policy there?
Do you have suggestions how to update the dnf installation?
Or in general how to install paraview and visualizer on (Rocky) Linux?
You can keep using it if that correspond to your needs (and even modify/patch it). If not, building an application with trame give you a lot more flexibility, but that is just a framework not an app.