server { listen 7860; server_name localhost; location / { root /var/www/html; index index.html; try_files $uri $uri/ /index.html; } location /ubu/ { proxy_pass http://127.0.0.1:8050/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; # ЭТО ВЫКЛЮЧАЕТ ЗАВИСАНИЕ: proxy_buffering off; proxy_request_buffering off; proxy_read_timeout 86400s; proxy_send_timeout 86400s; } location /term/ { proxy_pass http://127.0.0.1:8081/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; } location /mqtt { proxy_pass http://127.0.0.1:9001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_read_timeout 86400s; proxy_send_timeout 86400s; } }