Skip to content

Commit

Permalink
nixos/nginx: Do not remove headers while proxying
Browse files Browse the repository at this point in the history
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 762ca64)
  • Loading branch information
fooker authored and alexfmpe committed Sep 18, 2021
1 parent c743be6 commit 9c6fe6c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nixos/modules/services/web-servers/nginx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down

0 comments on commit 9c6fe6c

Please # to comment.