ActivityPub-federated video streaming platform using P2P directly in your web browser
Support socket.io in nginx template
Chocobozzz4a57b65cc5a3
diff --git a/support/nginx/peertube b/support/nginx/peertubeindex 914ca3741a..54ffdcc329 100644--- a/support/nginx/peertube+++ b/support/nginx/peertube@@ -158,4 +158,16 @@ server {proxy_set_header Host $host;proxy_pass http://localhost:9000;}++ location /socket.io {+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header Host $host;++ proxy_pass http://localhost:9000;++ # enable WebSockets+ proxy_http_version 1.1;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection "upgrade";+ }}