projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d452048
)
Support socket.io in nginx template
author
Chocobozzz
<me@florianbigard.com>
Tue, 29 Jan 2019 08:10:24 +0000
(09:10 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 29 Jan 2019 08:10:24 +0000
(09:10 +0100)
support/nginx/peertube
patch
|
blob
|
history
diff --git
a/support/nginx/peertube
b/support/nginx/peertube
index 914ca3741a39d9e7d6c4c4ce9cdb552f0ef7d779..54ffdcc3298af304dffe6c1f4b9d37665759382f 100644
(file)
--- 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";
+ }
}