diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-29 09:10:24 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-29 09:10:24 +0100 |
commit | 4a57b65cc5a3cea50c30c0e93eee7490845a170d (patch) | |
tree | 4939cd96792286e037af8ca03277c19e326fd19b /support/nginx/peertube | |
parent | d4520481271087aa284913ff6c198a93c0b37c49 (diff) | |
download | PeerTube-4a57b65cc5a3cea50c30c0e93eee7490845a170d.tar.gz PeerTube-4a57b65cc5a3cea50c30c0e93eee7490845a170d.tar.zst PeerTube-4a57b65cc5a3cea50c30c0e93eee7490845a170d.zip |
Support socket.io in nginx template
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 | } |