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 http://parse.domain.com:1337, 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;
	proxy_pass http://parse.domain.com:1337;
}

Now, my parse server is now accessible via https://parse.domain.com/parse.

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://parse.domain.com/parse' failed:
LiveQueryClient.js:450  

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

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";