vsftpd.nix: Add possibility to add RSA key file
This commit is contained in:
parent
40c586b7ce
commit
973219c973
|
@ -85,6 +85,9 @@ let
|
|||
ssl_enable=YES
|
||||
rsa_cert_file=${cfg.rsaCertFile}
|
||||
''}
|
||||
${optionalString (cfg.rsaKeyFile != null) ''
|
||||
rsa_private_key_file=${cfg.rsaKeyFile}
|
||||
''}
|
||||
${optionalString (cfg.userlistFile != null) ''
|
||||
userlist_file=${cfg.userlistFile}
|
||||
''}
|
||||
|
@ -147,6 +150,12 @@ in
|
|||
description = "RSA certificate file.";
|
||||
};
|
||||
|
||||
rsaKeyFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = "RSA private key file.";
|
||||
};
|
||||
|
||||
anonymousUmask = mkOption {
|
||||
type = types.string;
|
||||
default = "077";
|
||||
|
|
Loading…
Reference in a new issue