LiveQuery not working after setting a reverse proxy in plesk server

Hi folks. I installed parse server in our plesk hosting, by default our parse-server is accessible via, so what I did is create a reverse proxy in plesk to handle nodejs app:

location ~ / {
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;

Now, my parse server is now accessible via

But when I tried to connect one of my app, it connects succesffully except for the websocket/live query. I got this error on my browser’s console:

WebSocket connection to 'wss://' failed:

Solved: I added these two lines inside my nginx additional directives:

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";