Home: Move nginx to ipv6.

This commit is contained in:
Dmitry Voronin 2025-01-05 09:05:34 +03:00
parent e76d3bd706
commit 21a85aea62
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
14 changed files with 15 additions and 15 deletions

View file

@ -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';
} }

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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 = ''

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;