aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx/peertube
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-07 15:13:01 +0200
committerChocobozzz <me@florianbigard.com>2019-08-07 15:13:01 +0200
commitfd2ddcae8ff4eb10bf7168ac3c8801f06b37627f (patch)
treeef9e614ef47fc655d720b65ac700bafaeadbabca /support/nginx/peertube
parent51c3544718f751dbba4ece9aec39c53fab524c88 (diff)
downloadPeerTube-fd2ddcae8ff4eb10bf7168ac3c8801f06b37627f.tar.gz
PeerTube-fd2ddcae8ff4eb10bf7168ac3c8801f06b37627f.tar.zst
PeerTube-fd2ddcae8ff4eb10bf7168ac3c8801f06b37627f.zip
Fix nginx template on dual stack server
See https://framacolibri.org/t/listen-to-unix-socket-instead-of-localhost-9000/5348
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r--support/nginx/peertube6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index aca985785..225241bac 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -91,7 +91,7 @@ server {
91 } 91 }
92 92
93 location / { 93 location / {
94 proxy_pass http://localhost:9000; 94 proxy_pass http://127.0.0.1:9000;
95 proxy_set_header X-Real-IP $remote_addr; 95 proxy_set_header X-Real-IP $remote_addr;
96 proxy_set_header Host $host; 96 proxy_set_header Host $host;
97 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 97 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -156,14 +156,14 @@ server {
156 proxy_http_version 1.1; 156 proxy_http_version 1.1;
157 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 157 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
158 proxy_set_header Host $host; 158 proxy_set_header Host $host;
159 proxy_pass http://localhost:9000; 159 proxy_pass http://127.0.0.1:9000;
160 } 160 }
161 161
162 location /socket.io { 162 location /socket.io {
163 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 163 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
164 proxy_set_header Host $host; 164 proxy_set_header Host $host;
165 165
166 proxy_pass http://localhost:9000; 166 proxy_pass http://127.0.0.1:9000;
167 167
168 # enable WebSockets 168 # enable WebSockets
169 proxy_http_version 1.1; 169 proxy_http_version 1.1;