diff --git a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 index c6b69aa..e91fe1e 100644 --- a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 @@ -9,6 +9,7 @@ server { resolver 127.0.0.11 valid=30s; set $upstream http://ipfs:5001; proxy_pass $upstream; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; } diff --git a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 index b416fea..081f00a 100644 --- a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 @@ -9,6 +9,7 @@ server { resolver 127.0.0.11 valid=30s; set $upstream http://monerod:18089; proxy_pass $upstream; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; } diff --git a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 index be898f0..03e1542 100644 --- a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 @@ -6,11 +6,18 @@ server { server_name {{ apps_vars.nextcloud.domain }}; location / { - resolver 127.0.0.11 valid=30s; + resolver 127.0.0.11 valid=30s; set $upstream http://nextcloud:80; proxy_pass $upstream; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + + proxy_read_timeout 86400s; + client_body_buffer_size 512k; + client_max_body_size 0; } location ~^/\.well-known/(cal|card)dav$ {