feat(paperless): fix permissions of ftp uploaded files
This commit is contained in:
parent
3044d87d95
commit
ed881ea57d
2 changed files with 5 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ in
|
|||
users.users.paperless-upload = {
|
||||
isNormalUser = true;
|
||||
homeMode = "770";
|
||||
group = "paperless-upload";
|
||||
group = "paperless";
|
||||
};
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
|||
4
ftp.nix
4
ftp.nix
|
|
@ -3,11 +3,15 @@
|
|||
enable = true;
|
||||
localUsers = true;
|
||||
writeEnable = true;
|
||||
chrootlocalUser = true;
|
||||
extraConfig = ''
|
||||
log_ftp_protocol=YES
|
||||
pasv_enable=YES
|
||||
pasv_min_port=51000
|
||||
pasv_max_port=51999
|
||||
local_umask=022
|
||||
file_open_mode=0777
|
||||
allow_writeable_chroot=YES
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue