Skip to content

Commit

Permalink
Fix nginx template on dual stack server
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Aug 7, 2019
1 parent 51c3544 commit fd2ddca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support/nginx/peertube
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fd2ddca

Please sign in to comment.