From 9c6fe6cfed27d05582bdc38b6c3c4974215510d8 Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Fri, 16 Oct 2020 12:46:24 +0200 Subject: [PATCH] nixos/nginx: Do not remove headers while proxying Removing the `Accept-Encoding` header breaks applications which may produce already compressed content. Removing this header is staded in the nginx docs but is ment as an example, not as an recomendation. (cherry picked from commit 762ca640c4a5ce18a63a2341f40be7c00a6506b8) --- nixos/modules/services/web-servers/nginx/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 39bcb14e5afe8..6d2ddea927e04 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -34,7 +34,6 @@ let proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; - proxy_set_header Accept-Encoding ""; ''; upstreamConfig = toString (flip mapAttrsToList cfg.upstreams (name: upstream: ''