nix-infra/common/fragments/vsftpd.nix

26 lines
554 B
Nix
Raw Normal View History

2023-03-06 19:44:41 +00:00
{ config, ... }: {
services.vsftpd = {
enable = true;
anonymousUser = true;
anonymousUserNoPassword = true;
2023-03-06 19:44:41 +00:00
rsaCertFile = "${
config.security.acme.certs."technogothic.net".directory
}/fullchain.pem";
rsaKeyFile =
"${config.security.acme.certs."technogothic.net".directory}/key.pem";
forceLocalLoginsSSL = true;
forceLocalDataSSL = true;
extraConfig = ''
pasv_min_port=40000
pasv_max_port=40200
2023-03-06 19:44:41 +00:00
allow_anon_ssl=YES
require_ssl_reuse=NO
ssl_ciphers=HIGH
'';
};
}