diff --git a/roles/apps/templates/nginx/conf.d/http.conf.j2 b/roles/apps/templates/nginx/conf.d/http.conf.j2 index 490452b..adab5be 100644 --- a/roles/apps/templates/nginx/conf.d/http.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/http.conf.j2 @@ -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; diff --git a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 index daa144a..b76ecba 100644 --- a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 @@ -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; diff --git a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 index 996ab4e..9db7b46 100644 --- a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 @@ -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; diff --git a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 index 63e161a..2cc7c07 100644 --- a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 @@ -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;