feat: enable brotli compression in nginx
This commit is contained in:
parent
80fd74dae5
commit
ef95939ebf
1 changed files with 8 additions and 1 deletions
|
|
@ -366,13 +366,20 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.nginx.override {
|
||||||
|
modules = [ pkgs.nginxModules.brotli ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
recommendedGzipSettings = true;
|
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
|
commonHttpConfig = ''
|
||||||
|
brotli on;
|
||||||
|
brotli_static on;
|
||||||
|
brotli_types application/json application/javascript application/xml application/xml+rss image/svg+xml text/css text/html text/javascript text/plain text/xml;
|
||||||
|
'';
|
||||||
# sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
# sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue