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.
This commit is contained in:
parent
6742cc7660
commit
762ca640c4
@ -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: ''
|
||||
|
Loading…
Reference in New Issue
Block a user