diff options
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r-- | support/nginx/peertube | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube index 914ca3741..54ffdcc32 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube | |||
@@ -158,4 +158,16 @@ server { | |||
158 | proxy_set_header Host $host; | 158 | proxy_set_header Host $host; |
159 | proxy_pass http://localhost:9000; | 159 | proxy_pass http://localhost:9000; |
160 | } | 160 | } |
161 | |||
162 | location /socket.io { | ||
163 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
164 | proxy_set_header Host $host; | ||
165 | |||
166 | proxy_pass http://localhost:9000; | ||
167 | |||
168 | # enable WebSockets | ||
169 | proxy_http_version 1.1; | ||
170 | proxy_set_header Upgrade $http_upgrade; | ||
171 | proxy_set_header Connection "upgrade"; | ||
172 | } | ||
161 | } | 173 | } |