2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-16 01:57:08 +00:00

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.
This commit is contained in:
Jared L 2022-07-25 10:38:47 +10:00 committed by GitHub
parent beac865153
commit 7da62f96f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,7 @@ server {
} }
location @webserver { location @webserver {
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frappe-Site-Name {{ site_name }}; proxy_set_header X-Frappe-Site-Name {{ site_name }};