diff --git a/hosts/by-name/servo/services/default.nix b/hosts/by-name/servo/services/default.nix index 023cad86..7bdafb5c 100644 --- a/hosts/by-name/servo/services/default.nix +++ b/hosts/by-name/servo/services/default.nix @@ -7,6 +7,7 @@ ./email ./ejabberd.nix ./freshrss.nix + ./ftp.nix ./gitea.nix ./goaccess.nix ./ipfs.nix diff --git a/hosts/by-name/servo/services/ftp.nix b/hosts/by-name/servo/services/ftp.nix new file mode 100644 index 00000000..1cd0c667 --- /dev/null +++ b/hosts/by-name/servo/services/ftp.nix @@ -0,0 +1,32 @@ +# docs: +# - +# - config options: +# - config defaults: +# +# sftpgo is a FTP server that also supports WebDAV, SFTP, and web clients. + +{ ... }: +{ + sane.ports.ports."21" = { + protocol = [ "tcp" ]; + visibleTo.lan = true; + description = "colin-FTP server"; + }; + + services.sftpgo = { + enable = false; + # enable = true; + settings.ftpd.bindings = [{ + address = "10.0.10.5"; + port = 21; + + banner = '' + Welcome, friends, to Colin's read-only FTP server! Also available via NFS on the same host. + Please let me know if anything's broken or not as it should be. Otherwise, browse and DL freely :) + ''; + hash_support = true; + + debug = true; + }]; + }; +} diff --git a/hosts/common/ids.nix b/hosts/common/ids.nix index c14b427e..0136ffad 100644 --- a/hosts/common/ids.nix +++ b/hosts/common/ids.nix @@ -40,6 +40,8 @@ sane.ids.lemmy.gid = 2408; sane.ids.pict-rs.uid = 2409; sane.ids.pict-rs.gid = 2409; + sane.ids.sftpgo.uid = 2410; + sane.ids.sftpgo.gid = 2410; sane.ids.colin.uid = 1000; sane.ids.guest.uid = 1100;