Skip to content

Commit

Permalink
fix(nginx): set proxy_http_version to 1.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lhjt committed Jul 25, 2022
1 parent beac865 commit 7da62f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bench/config/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 }};
Expand Down

0 comments on commit 7da62f9

Please sign in to comment.