forked from mirrors/nixpkgs
Add HTTPD SSH assertion to check null cert/key.
This commit is contained in:
parent
0427e7fbf2
commit
df5f491893
|
@ -584,8 +584,8 @@ in
|
|||
config = mkIf config.services.httpd.enable {
|
||||
|
||||
assertions = [ { assertion = mainCfg.enableSSL == true
|
||||
-> mainCfg.sslServerCert != null && mainCfg.sslServerCert != ""
|
||||
&& mainCfg.sslServerKey != null && mainCfg.sslServerKey != "";
|
||||
-> mainCfg.sslServerCert != null
|
||||
&& mainCfg.sslServerKey != null;
|
||||
message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; }
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue