From 7da62f96f29fbd12d42c0686abbc8adcb05c4049 Mon Sep 17 00:00:00 2001 From: Jared L <48422312+lhjt@users.noreply.github.com> Date: Mon, 25 Jul 2022 10:38:47 +1000 Subject: [PATCH] fix(nginx): set `proxy_http_version` to `1.1` This sets the `proxy_http_version` to `1.1`. The reason this change should be implemented is that when this is deployed in a Kubernetes environment with Istio, the proxy request fails with HTTP error 426 as the HTTP version is too low for envoy to handle. Setting it to `1.1` will solve the issue. --- bench/config/templates/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/bench/config/templates/nginx.conf b/bench/config/templates/nginx.conf index 4af72ab4a..6cd67d0bb 100644 --- a/bench/config/templates/nginx.conf +++ b/bench/config/templates/nginx.conf @@ -91,6 +91,7 @@ server { } location @webserver { + proxy_http_version 1.1; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Frappe-Site-Name {{ site_name }};