Skip to content

Nginx

Nginx Config

Default config file location: /etc/nginx/nginx.conf

Add Websocket to Nginx Proxy

Add the following in config file:

upstream websocket {

server :;

}

Websocket location block

location / {

proxy_pass https://websocket;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "upgrade";

proxy_set_header Host $host;

}