Home : Add ftp server.

This commit is contained in:
Dmitry Voronin 2024-01-26 01:54:22 +03:00
parent 91048d7866
commit d0ba35a059
3 changed files with 20 additions and 15 deletions

View file

@ -0,0 +1,16 @@
{ ... }:
{
services.vsftpd = {
enable = true;
anonymousUser = true;
anonymousUserNoPassword = true;
anonymousUploadEnable = true;
anonymousMkdirEnable = true;
anonymousUmask = "000";
anonymousUserHome = "/storage/hot/ftp";
allowWriteableChroot = true;
writeEnable = true;
localUsers = false;
};
}

View file

@ -8,6 +8,7 @@
./PhotosProcess.nix
./YandexMusic.nix
../Common.nix
../Ftpd.nix
../PowersaveAmd.nix
../AmdGpu.nix
../Docker.nix
@ -43,6 +44,9 @@
systemd.services.docker.wantedBy = lib.mkForce [ ];
systemd.sockets.docker.wantedBy = lib.mkForce [ ];
# Disable ftpd autostart.
systemd.services.vsftpd.wantedBy = lib.mkForce [ ];
# Do not touch ever.
system.stateVersion = "23.11";
}

View file

@ -1,15 +0,0 @@
listen=YES
anonymous_enable=YES
local_enable=NO
write_enable=YES
anon_upload_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=NO
connect_from_port_20=YES
anon_root=/var/mnt/storage/hot/ftp
#pam_service_name=vsftpd
allow_writeable_chroot=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_umask=000