nginx: enable ktls support by default
This commit is contained in:
parent
dc594fa5f6
commit
10c06cb060
@ -1132,14 +1132,6 @@ in
|
|||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
assertion = any (host: host.kTLS) (attrValues virtualHosts) -> versionAtLeast cfg.package.version "1.21.4";
|
|
||||||
message = ''
|
|
||||||
services.nginx.virtualHosts.<name>.kTLS requires nginx version
|
|
||||||
1.21.4 or above; see the documentation for services.nginx.package.
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
assertion = all (host: !(host.enableACME && host.useACMEHost != null)) (attrValues virtualHosts);
|
assertion = all (host: !(host.enableACME && host.useACMEHost != null)) (attrValues virtualHosts);
|
||||||
message = ''
|
message = ''
|
||||||
@ -1348,6 +1340,8 @@ in
|
|||||||
nginx.gid = config.ids.gids.nginx;
|
nginx.gid = config.ids.gids.nginx;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernelModules = optional (versionAtLeast config.boot.kernelPackages.kernel.version "4.17") "tls";
|
||||||
|
|
||||||
# do not delete the default temp directories created upon nginx startup
|
# do not delete the default temp directories created upon nginx startup
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"X /tmp/systemd-private-%b-nginx.service-*/tmp/nginx_*"
|
"X /tmp/systemd-private-%b-nginx.service-*/tmp/nginx_*"
|
||||||
|
@ -4,7 +4,7 @@ outer@{ lib, stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt
|
|||||||
, nixosTests
|
, nixosTests
|
||||||
, installShellFiles, substituteAll, removeReferencesTo, gd, geoip, perl
|
, installShellFiles, substituteAll, removeReferencesTo, gd, geoip, perl
|
||||||
, withDebug ? false
|
, withDebug ? false
|
||||||
, withKTLS ? false
|
, withKTLS ? true
|
||||||
, withStream ? true
|
, withStream ? true
|
||||||
, withMail ? false
|
, withMail ? false
|
||||||
, withPerl ? true
|
, withPerl ? true
|
||||||
|
Loading…
Reference in New Issue
Block a user