servo: partially enable a FTP server

disabled as i tidy it
strugging to enable an anonymous FTP user -- might not be possible without using the web admin interface
This commit is contained in:
Colin 2023-06-17 10:15:24 +00:00
parent 0605094461
commit d95042ab65
3 changed files with 35 additions and 0 deletions

View File

@ -7,6 +7,7 @@
./email
./ejabberd.nix
./freshrss.nix
./ftp.nix
./gitea.nix
./goaccess.nix
./ipfs.nix

View File

@ -0,0 +1,32 @@
# docs:
# - <https://github.com/drakkan/sftpgo>
# - config options: <https://github.com/drakkan/sftpgo/blob/main/docs/full-configuration.md>
# - config defaults: <https://github.com/drakkan/sftpgo/blob/main/sftpgo.json>
#
# 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;
}];
};
}

View File

@ -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;