mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/nginx: update description in compression modules
This commit is contained in:
parent
9448487d9f
commit
427ae14373
1 changed files with 16 additions and 12 deletions
|
@ -184,8 +184,9 @@ let
|
||||||
brotli_types ${lib.concatStringsSep " " compressMimeTypes};
|
brotli_types ${lib.concatStringsSep " " compressMimeTypes};
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${optionalString cfg.recommendedGzipSettings ''
|
${optionalString cfg.recommendedGzipSettings
|
||||||
# https://docs.nginx.com/nginx/admin-guide/web-server/compression/
|
# https://docs.nginx.com/nginx/admin-guide/web-server/compression/
|
||||||
|
''
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
@ -476,7 +477,8 @@ in
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Enable recommended brotli settings. Learn more about compression in Brotli format [here](https://github.com/google/ngx_brotli/blob/master/README.md).
|
Enable recommended brotli settings.
|
||||||
|
Learn more about compression in Brotli format [here](https://github.com/google/ngx_brotli/).
|
||||||
|
|
||||||
This adds `pkgs.nginxModules.brotli` to `services.nginx.additionalModules`.
|
This adds `pkgs.nginxModules.brotli` to `services.nginx.additionalModules`.
|
||||||
'';
|
'';
|
||||||
|
@ -487,6 +489,18 @@ in
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
Enable recommended gzip settings.
|
Enable recommended gzip settings.
|
||||||
|
Learn more about compression in Gzip format [here](https://docs.nginx.com/nginx/admin-guide/web-server/compression/).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
recommendedZstdSettings = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = lib.mdDoc ''
|
||||||
|
Enable recommended zstd settings.
|
||||||
|
Learn more about compression in Zstd format [here](https://github.com/tokers/zstd-nginx-module).
|
||||||
|
|
||||||
|
This adds `pkgs.nginxModules.zstd` to `services.nginx.additionalModules`.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -498,16 +512,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
recommendedZstdSettings = mkOption {
|
|
||||||
default = false;
|
|
||||||
type = types.bool;
|
|
||||||
description = lib.mdDoc ''
|
|
||||||
Enable recommended zstd settings. Learn more about compression in Zstd format [here](https://github.com/tokers/zstd-nginx-module).
|
|
||||||
|
|
||||||
This adds `pkgs.nginxModules.zstd` to `services.nginx.additionalModules`.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
proxyTimeout = mkOption {
|
proxyTimeout = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "60s";
|
default = "60s";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue