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

View File

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