git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13777 from eqyiel/upstream

vsftpd: Add possibility to specify path to RSA key file

commitb27de68c4e18e6fcacac48c1c14525ce7bccc471 authorMichael Raskin <7c6f434c@mail.ru> dateWed 9 Mar 2016, 03:02 (11 years ago) parente3ae435973219c
1 file changed+9
nixos/modules/services/networking/vsftpd.nix+9
nixos/modules/services/networking/vsftpd.nix+9
@@ -85,6 +85,9 @@ let
8585 ssl_enable=YES
8686 rsa_cert_file=${cfg.rsaCertFile}
8787 ''}
88+ ${optionalString (cfg.rsaKeyFile != null) ''
89+ rsa_private_key_file=${cfg.rsaKeyFile}
90+ ''}
8891 ${optionalString (cfg.userlistFile != null) ''
8992 userlist_file=${cfg.userlistFile}
9093 ''}
@@ -147,6 +150,12 @@ in
147150 description = "RSA certificate file.";
148151 };
149152
153+ rsaKeyFile = mkOption {
154+ type = types.nullOr types.path;
155+ default = null;
156+ description = "RSA private key file.";
157+ };
158+
150159 anonymousUmask = mkOption {
151160 type = types.string;
152161 default = "077";