Enable compression for static files and media
This commit is contained in:
parent
945ae8563b
commit
a5aa4fce34
1 changed files with 2 additions and 3 deletions
|
|
@ -105,9 +105,7 @@ in
|
|||
serverAliases = cfg.hostNameAliases;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = hsts + ''
|
||||
gzip off;
|
||||
'';
|
||||
extraConfig = hsts;
|
||||
locations."/static/".alias = "${static}/";
|
||||
locations."/media/".alias = "${cfg.stateDir}/media/";
|
||||
locations."= /favicon.ico".return = "404";
|
||||
|
|
@ -116,6 +114,7 @@ in
|
|||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
gzip off;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue