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.
  • Loading branch information
fooker committed Oct 16, 2020
1 parent 6742cc7 commit 762ca64
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 762ca64

Please sign in to comment.