My webRTC server stops working. Chrome highlighted this error:
VM238:164 WebSocket connection to 'wss://*******.com/rtc/' failed: Error during
WebSocket handshake: Unexpected response code: 502
Error after server reboot (as I think). Server information - ubuntu, nginx + uwsgi, webrtc part - python.
Nginx error log:
2018/03/15 15:05:17 [error] 597#0: *1058 connect() failed (111: Connection refused)
while connecting to upstream, client: ***.***.***.***, server: ********.com, request:
"GET /rtc/ HTTP/1.1", upstream: "http://127.0.0.1:3333/rtc/", host: "********.com"
Nginx.conf file:
user ****;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Unfortunately, I know little about WebRTS. This part of the project was done in front of me. If you need more information, I can provide it.
source
share