Livebook selfhost on baremetal server behind nginx

I am trying to run my own livebook instance on my vps at livebook.mydomain.com .

I have nginx config that looks like


server {
            listen 80;
                server_name livebook.mydomain.com;

                    location / {
                                      proxy_pass http://localhost:9090;
                                      proxy_set_header Host $host;
                                      proxy_set_header X-Real-IP $remote_addr;
                                      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                        }
}


I can open the livebook app. But any notebook e.g. mynotebook.livemd does not open.

Do I need to open other ports also ?

I think I need to allow websockets as well. Will do that and report

It was websockets indeed!

added

 proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";

and it worked!