mastus: enable brotli
This commit is contained in:
parent
5e8acd1b37
commit
97aea12bb6
@ -43,7 +43,9 @@
|
|||||||
error_page 404 403 /404.html;
|
error_page 404 403 /404.html;
|
||||||
|
|
||||||
gzip on;
|
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;
|
access_log logs/website_access.log;
|
||||||
|
|
||||||
|
@ -32,5 +32,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
package = with pkgs; nginxMainline.override {
|
||||||
|
modules = [
|
||||||
|
nginxModules.brotli
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user