From fd2ddcae8ff4eb10bf7168ac3c8801f06b37627f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 7 Aug 2019 15:13:01 +0200 Subject: [PATCH] Fix nginx template on dual stack server See https://framacolibri.org/t/listen-to-unix-socket-instead-of-localhost-9000/5348 --- support/nginx/peertube | 6 +++--- 1 file 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 { } 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; -- 2.25.1