vsftpd: Set umask so that paperless may read
This commit is contained in:
parent
c256cf8f02
commit
0fb9ad732a
2 changed files with 28 additions and 0 deletions
27
hosts/igor/syncthing.nix
Normal file
27
hosts/igor/syncthing.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config.services.syncthing = {
|
||||
enable = true;
|
||||
|
||||
user = "vsftpd";
|
||||
group = "vsftpd";
|
||||
|
||||
devices = {
|
||||
thrall = {
|
||||
id = "P52YQU2-7LCEOVV-DSGTAZG-AJ2DSJD-JPHSUJE-HC2KAGO-YR4SXQD-V6OQ7QF";
|
||||
addresses = [ "tcp://195.90.211.228:22000" ];
|
||||
};
|
||||
};
|
||||
|
||||
folders = {
|
||||
"/var/lib/vsftpd/data/upload" = {
|
||||
id = "paperless";
|
||||
devices = [ "thrall" ];
|
||||
versioning = {
|
||||
type = "trashcan";
|
||||
params.cleanoutDays = "90";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
enableVirtualUsers = true;
|
||||
virtualUseLocalPrivs = true;
|
||||
localRoot = "/var/lib/vsftpd/data";
|
||||
extraConfig = "local_umask=002";
|
||||
};
|
||||
|
||||
config.networking.firewall.allowedTCPPorts = [ 20 21 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue