map $http_upgrade $connection_upgrade{
default upgrade;
'' close;
}
server {
listen 8000;
server_name 36.133.20.49;
location / {
proxy_pass http://192.168.100.3:8083/mqtt;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_connect_timeout 4s;
proxy_read_timeout 600s;
proxy_send_timeout 12s;
}
}