vsftpd: utilisation du certif let's encrypt

This commit is contained in:
nyanloutre 2020-03-02 22:39:16 +01:00
parent ec60e54c9a
commit 551cf94d4e
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@
userlistDeny = false; userlistDeny = false;
localUsers = true; localUsers = true;
userlist = ["claire" "manu" "lakeu" "fusil" "stryxion" "nico"]; userlist = ["claire" "manu" "lakeu" "fusil" "stryxion" "nico"];
rsaCertFile = "/var/vsftpd/vsftpd.pem"; rsaCertFile = "/var/lib/acme/nyanlout.re/full.pem";
extraConfig = '' extraConfig = ''
pasv_min_port=64000 pasv_min_port=64000
pasv_max_port=65535 pasv_max_port=65535
@ -59,8 +59,8 @@
}; };
}; };
bindMounts = { bindMounts = {
"/var/vsftpd/vsftpd.pem" = { "/var/lib/acme/nyanlout.re" = {
hostPath = "/var/vsftpd/vsftpd.pem"; hostPath = "/var/lib/acme/nyanlout.re";
}; };
"/mnt/medias" = { "/mnt/medias" = {
hostPath = "/mnt/medias"; hostPath = "/mnt/medias";

View File

@ -138,6 +138,7 @@ in
group = "acme"; group = "acme";
postRun = '' postRun = ''
systemctl reload haproxy.service systemctl reload haproxy.service
nixos-container run vsftpd -- systemctl restart vsftpd
''; '';
}; };
}; };