diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-25 02:18:59 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-25 02:18:59 +0200 |
commit | 742697c95318d3625298437995e948ee00a00ba5 (patch) | |
tree | 322bba0294512d71011efa15b84ef0c2134900a3 /nixops/modules/ftp/default.nix | |
parent | ccdd91a78b1a6ae757db20d757ba8674dd25e0cc (diff) | |
download | Nix-742697c95318d3625298437995e948ee00a00ba5.tar.gz Nix-742697c95318d3625298437995e948ee00a00ba5.tar.zst Nix-742697c95318d3625298437995e948ee00a00ba5.zip |
Move ssh ftp and mpd to new secrets
Diffstat (limited to 'nixops/modules/ftp/default.nix')
-rw-r--r-- | nixops/modules/ftp/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixops/modules/ftp/default.nix b/nixops/modules/ftp/default.nix index 0409f23..ff067f8 100644 --- a/nixops/modules/ftp/default.nix +++ b/nixops/modules/ftp/default.nix | |||
@@ -47,7 +47,8 @@ | |||
47 | install -m 0755 -o ftp -g ftp -d /var/lib/ftp | 47 | install -m 0755 -o ftp -g ftp -d /var/lib/ftp |
48 | ''; | 48 | ''; |
49 | 49 | ||
50 | deployment.keys.pure-ftpd-ldap = { | 50 | mySecrets.keys = [{ |
51 | dest = "pure-ftpd-ldap"; | ||
51 | permissions = "0400"; | 52 | permissions = "0400"; |
52 | user = "ftp"; | 53 | user = "ftp"; |
53 | group = "ftp"; | 54 | group = "ftp"; |
@@ -70,7 +71,7 @@ | |||
70 | # Compile dans pure-ftpd directement avec immaeFtpUid / immaeFtpGid | 71 | # Compile dans pure-ftpd directement avec immaeFtpUid / immaeFtpGid |
71 | LDAPHomeDir immaeFtpDirectory | 72 | LDAPHomeDir immaeFtpDirectory |
72 | ''; | 73 | ''; |
73 | }; | 74 | }]; |
74 | 75 | ||
75 | systemd.services.pure-ftpd = let | 76 | systemd.services.pure-ftpd = let |
76 | configFile = pkgs.writeText "pure-ftpd.conf" '' | 77 | configFile = pkgs.writeText "pure-ftpd.conf" '' |
@@ -88,7 +89,7 @@ | |||
88 | SyslogFacility ftp | 89 | SyslogFacility ftp |
89 | DontResolve yes | 90 | DontResolve yes |
90 | MaxIdleTime 15 | 91 | MaxIdleTime 15 |
91 | LDAPConfigFile /run/keys/pure-ftpd-ldap | 92 | LDAPConfigFile /var/secrets/pure-ftpd-ldap |
92 | LimitRecursion 10000 8 | 93 | LimitRecursion 10000 8 |
93 | AnonymousCanCreateDirs no | 94 | AnonymousCanCreateDirs no |
94 | MaxLoad 4 | 95 | MaxLoad 4 |