Make NGINX only resolve IPv4

This commit is contained in:
Sam A. 2024-01-28 18:43:12 +01:00
parent 479de1cb31
commit 165371e969
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
4 changed files with 2 additions and 4 deletions

View file

@ -5,6 +5,8 @@ set_real_ip_from {{ proxy_host }};
real_ip_header X-Forwarded-For;
real_ip_recursive on;
resolver 127.0.0.11 valid=30s ipv6=off;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;

View file

@ -6,7 +6,6 @@ server {
server_name {{ apps_vars.ipfs.domain }};
location / {
resolver 127.0.0.11 valid=30s;
set $upstream http://ipfs:5001;
proxy_pass $upstream;
@ -21,7 +20,6 @@ server {
server_name ~^([\w-]+\.(ipfs|ipns)\.)?{{ apps_vars.ipfs.gateway_domain }}$;
location / {
resolver 127.0.0.11 valid=30s;
set $upstream http://ipfs:8080;
proxy_pass $upstream;

View file

@ -6,7 +6,6 @@ server {
server_name {{ apps_vars.monerod.domain }};
location / {
resolver 127.0.0.11 valid=30s;
set $upstream http://monerod:18089;
proxy_pass $upstream;

View file

@ -6,7 +6,6 @@ server {
server_name {{ apps_vars.nextcloud.domain }};
location / {
resolver 127.0.0.11 valid=30s;
set $upstream http://nextcloud:80;
proxy_pass $upstream;