mastus: enable brotli

This commit is contained in:
Gabriel Ebner 2018-04-07 11:08:09 +02:00
parent 5e8acd1b37
commit 97aea12bb6
2 changed files with 8 additions and 1 deletions

View File

@ -43,7 +43,9 @@
error_page 404 403 /404.html;
gzip on;
gzip_types image/x-icon text/html image/svg+xml text/css;
gzip_types image/x-icon image/svg+xml text/css;
brotli on;
brotli_types image/x-icon image/svg+xml text/css;
access_log logs/website_access.log;

View File

@ -32,5 +32,10 @@
}
}
'';
package = with pkgs; nginxMainline.override {
modules = [
nginxModules.brotli
];
};
};
}