1
0
Fork 0
forked from exozyme/nginx

Replace 127.0.0.1 with localhost

This commit is contained in:
Anthony Wang 2021-11-24 20:11:03 -06:00
parent d5f95efe68
commit 63f1786fd3
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76
9 changed files with 14 additions and 14 deletions

View file

@ -8,7 +8,7 @@ server {
location / {
# Required to proxy the connection to Cockpit
proxy_pass https://127.0.0.1:9090;
proxy_pass https://localhost:9090;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;

View file

@ -1,5 +1,5 @@
upstream vnc_proxy {
server 127.0.0.1:6080;
server localhost:6080;
}
server {

View file

@ -7,7 +7,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/exozy.me/privkey.pem;
location / {
proxy_pass http://127.0.0.1:11080/guacamole/;
proxy_pass http://localhost:11080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -29,7 +29,7 @@ server {
auth_basic_user_file /etc/nginx/.htpasswd;
location / {
proxy_pass http://127.0.0.1:11080/guacamole/;
proxy_pass http://localhost:11080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View file

@ -14,9 +14,9 @@ server {
# use a variable to store the upstream proxy
# in this example we are using a hostname which is resolved via DNS
# (if you aren't using DNS remove the resolver line and change the variable to point to an IP address e.g `set $jellyfin 127.0.0.1`)
set $jellyfin 127.0.0.1;
resolver 127.0.0.1 valid=30;
# (if you aren't using DNS remove the resolver line and change the variable to point to an IP address e.g `set $jellyfin localhost`)
set $jellyfin localhost;
resolver localhost valid=30;
ssl_certificate /etc/letsencrypt/live/exozy.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/exozy.me/privkey.pem;

View file

@ -12,7 +12,7 @@ server {
}
location /hub/desk/ {
proxy_pass http://127.0.0.1:11080/guacamole/;
proxy_pass http://localhost:11080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -24,7 +24,7 @@ server {
# Managing literal requests to the JupyterHub front end
location / {
proxy_pass http://127.0.0.1:8000;
proxy_pass http://localhost:8000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View file

@ -4,11 +4,11 @@ map $http_upgrade $connection_upgrade {
}
upstream backend {
server 127.0.0.1:3000 fail_timeout=0;
server localhost:3000 fail_timeout=0;
}
upstream streaming {
server 127.0.0.1:4000 fail_timeout=0;
server localhost:4000 fail_timeout=0;
}
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g;

View file

@ -14,7 +14,7 @@ server {
}
upstream tube_backend {
server 127.0.0.1:9000;
server localhost:9000;
}
server {

View file

@ -7,7 +7,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/exozy.me/privkey.pem;
location / {
proxy_pass http://127.0.0.1:6001;
proxy_pass http://localhost:6001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View file

@ -1,5 +1,5 @@
server {
listen 127.0.0.1:10080;
listen localhost:10080;
server_name qal6mygptf757jiv46m6x2g23v3dyxgrrrv3dbxpiyjj44tsd2u3l3yd.onion;
root /srv/http/exozy.me;