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 May 17, 2021
1 parent e6e5ff9 commit 377f58f
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 377f58f

Please # to comment.