]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix nginx template on dual stack server
authorChocobozzz <me@florianbigard.com>
Wed, 7 Aug 2019 13:13:01 +0000 (15:13 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 7 Aug 2019 13:13:01 +0000 (15:13 +0200)
See https://framacolibri.org/t/listen-to-unix-socket-instead-of-localhost-9000/5348

support/nginx/peertube

index aca9857858ea459b02eb1fa103faebfe69052db7..225241bac66f3b0391ef1dac86084cc295c5d3be 100644 (file)
@@ -91,7 +91,7 @@ server {
   }
 
   location / {
-    proxy_pass http://localhost:9000;
+    proxy_pass http://127.0.0.1:9000;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header Host $host;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -156,14 +156,14 @@ server {
     proxy_http_version 1.1;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header Host $host;
-    proxy_pass http://localhost:9000;
+    proxy_pass http://127.0.0.1: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;
+    proxy_pass http://127.0.0.1:9000;
 
     # enable WebSockets
     proxy_http_version 1.1;