Make NGINX only resolve IPv4
This commit is contained in:
parent
479de1cb31
commit
165371e969
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue