From b5d468bde894ec9ab2b75afd452e14e0f67f07c6 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sat, 10 Feb 2024 16:38:59 +0100 Subject: [PATCH] Enable HTTP/1.1 between NGINX and upstream --- roles/apps/templates/nginx/conf.d/ipfs.conf.j2 | 2 ++ roles/apps/templates/nginx/conf.d/monerod.conf.j2 | 1 + roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 index 028d1ff..3691f9d 100644 --- a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 @@ -12,6 +12,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; + proxy_http_version 1.1; proxy_buffering off; proxy_request_buffering off; @@ -31,6 +32,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; + proxy_http_version 1.1; proxy_buffering off; proxy_request_buffering off; diff --git a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 index d69ebcb..47f2a32 100644 --- a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 @@ -12,6 +12,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; + proxy_http_version 1.1; proxy_buffering off; proxy_request_buffering off; diff --git a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 index d327c07..957f2e1 100644 --- a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 @@ -12,6 +12,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; + proxy_http_version 1.1; proxy_buffering off; proxy_request_buffering off; @@ -19,7 +20,6 @@ server { proxy_pass $upstream; # WebSocket support - proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade;