What just did not try, does not work, now he writes at the opening:

Error during WebSocket handshake: Unexpected response code: 404

worker_processes 1; error_log logs/error.log debug; events { worker_connections 1024; } rtmp { server { listen 1935; application live { live on; } application hls { live on; hls on; hls_path temp/hls; hls_fragment 8s; } } } http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server 192.168.0.142:82; } server { listen 81; location / { proxy_pass http://websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root www; } location /hls { #server hls fragments types{ application/vnd.apple.mpegurl m3u8; video/mp2t ts; } alias temp/hls; expires -1; } } } 
  • And tried to connect directly to 192.168.0.142:82? Are the web sockets out there exactly working? - andreymal
  • @andreymal I apologize, but what do you mean to connect to the line? From the browser address bar? on port 82 - "Unable to access the site" - Geri4

0