diff options
author | Dustin Frisch <fooker@lab.sh> | 2020-10-16 12:46:24 +0200 |
---|---|---|
committer | Dustin Frisch <fooker@lab.sh> | 2020-10-16 12:50:52 +0200 |
commit | 762ca640c4a5ce18a63a2341f40be7c00a6506b8 (patch) | |
tree | a2bda7f8dcbc9dfad1981932a4af3f74e742a8dd /nixos | |
parent | 6742cc76600bbc73a5e3d5d667cb07d0858b9052 (diff) |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-servers/nginx/default.nix | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 39bcb14e5afe..6d2ddea927e0 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: '' |