Dear all,
I have a notebook in Pluto/PlutoSliderServer with several interactive graphics in a server for my students. My previous version was using Plots, but it was awfully slow, so I decided to try the WGLMakie and Observer to improve it. Locally it is working very nicely, and I was very happy with that.
Unfortunately, when I tried to put it in the server I was not able to make it running, the figures very appears. I have already taken a lot of time trying several options, but none of them is working. As a computer science teacher I am both teacher and the administrator of the server, there is no money for someone helping me.
In a cell in the notebook I put:
configure_server!(
listen_url="0.0.0.0",
listen_port=8800,
proxy_url="https://mh2526.dmolina.dedyn.io/ws"
)
I have tried WGLMakie.connect_server!, Bonito.Page() and Bonito.connect_server!() with different options. Note_ 8800 is a free port, I only set it for the web configuration.
Then in the web server I have two location, “/” that redirect to the port of the notebook, and “/ws” that redirect to port 8800. Something like:
location /ws/ {
# Redirect to port 8800 for WGLMakie without the /ws/ name
proxy_pass http://127.0.0.1:8800;
proxy_http_version 1.1;
# I am not sure if all of them are needed, but it is better to put more that have someone missing :-)
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 86400; # If the connection takes time
proxy_buffering off;
}
The petition on the server through 8800 port is going, but I did not see any figure.
Anyone have any idea? Anyone has put the notebook using WGLMakie behind a web server, and it is working for them?
Thank you in advance.