dms: proper dependencies and port setup
This commit is contained in:
parent
858f2fb2d9
commit
aaa878ff7b
1 changed files with 11 additions and 6 deletions
|
@ -20,12 +20,17 @@ in {
|
|||
userlistEnable = true;
|
||||
localUsers = true;
|
||||
writeEnable = true;
|
||||
extraConfig = ''
|
||||
# additional ports for directory list and stuff
|
||||
pasv_min_port=4242
|
||||
pasv_max_port=4243
|
||||
'';
|
||||
};
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
{
|
||||
# ftp
|
||||
from = 1024;
|
||||
to = 65535;
|
||||
# ftp: additional ports for directory list and stuff
|
||||
from = 4242;
|
||||
to = 4243;
|
||||
}
|
||||
{
|
||||
# ftp
|
||||
|
@ -46,12 +51,12 @@ in {
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
path = [
|
||||
(pkgs.python3.withPackages (ps: with ps; [ flask ]))
|
||||
pkgs.imagemagick
|
||||
pkgs.pdfsandwich
|
||||
pkgs.imagemagickBig
|
||||
(pkgs.pdfsandwich.override { imagemagick = pkgs.imagemagickBig; })
|
||||
pkgs.poppler_utils
|
||||
pkgs.which
|
||||
pkgs.ghostscript
|
||||
pkgs.netpbm
|
||||
pkgs.gawk
|
||||
];
|
||||
serviceConfig = { User = "ftp-upload"; };
|
||||
preStart = ''
|
||||
|
|
Loading…
Reference in a new issue