Home: Move nginx to ipv6.
This commit is contained in:
parent
e76d3bd706
commit
21a85aea62
|
@ -8,7 +8,7 @@
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:5001$request_uri;
|
proxy_pass http://[::1]:5001$request_uri;
|
||||||
|
|
||||||
add_header Referrer-Policy 'origin';
|
add_header Referrer-Policy 'origin';
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:631$request_uri;
|
proxy_pass http://[::1]:631$request_uri;
|
||||||
|
|
||||||
proxy_set_header Host "127.0.0.1";
|
proxy_set_header Host "127.0.0.1";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:8112$request_uri;
|
proxy_pass http://[::1]:8112$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:3000$request_uri;
|
proxy_pass http://[::1]:3000$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:3000$request_uri;
|
proxy_pass http://[::1]:3000$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:8123$request_uri;
|
proxy_pass http://[::1]:8123$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:3001$request_uri;
|
proxy_pass http://[::1]:3001$request_uri;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:8096$request_uri;
|
proxy_pass http://[::1]:8096$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:5000$request_uri;
|
proxy_pass http://[::1]:5000$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"office.voronind.com" = {
|
"office.voronind.com" = {
|
||||||
locations."/".extraConfig = lib.mkForce ''
|
locations."/".extraConfig = lib.mkForce ''
|
||||||
add_header X-Forwarded-Proto https;
|
add_header X-Forwarded-Proto https;
|
||||||
proxy_pass http://127.0.0.1:8000$request_uri;
|
proxy_pass http://[::1]:8000$request_uri;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:28981$request_uri;
|
proxy_pass http://[::1]:28981$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:34972$request_uri;
|
proxy_pass http://[::1]:34972$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
proxy_set_header Host "localhost";
|
proxy_set_header Host "localhost";
|
||||||
proxy_set_header X-Forwarded-Host "localhost";
|
proxy_set_header X-Forwarded-Host "localhost";
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:8384$request_uri;
|
proxy_pass http://[::1]:8384$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:64901$request_uri;
|
proxy_pass http://[::1]:64901$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
allow fd09:8d46:b26::/48;
|
allow fd09:8d46:b26::/48;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:8001$request_uri;
|
proxy_pass http://[::1]:8001$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;
|
||||||
|
|
Loading…
Reference in a new issue