blob: 276771c40f3e872de8fed46352d0d3a64b936c3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ config, ... }: let
inherit (config.srv) tld;
in {
srv.slds = [ "ftp.${config.networking.hostName}" ];
services.httpd = {
virtualHosts = {
#== File servers ==#
"ftp.${config.networking.hostName}.${tld}" = rec {
listen = [ { port = 80; } ];
documentRoot = "/home/ftp";
extraConfig = ''
<Directory "${documentRoot}">
IndexOptions +NameWidth=* +Charset=UTF-8
</Directory>
'';
};
};
};
}
|