diff options
| Commit | 751287e048315e06276b7d36b8620593e917f6df (patch) | |
|---|---|---|
| Author | 2026-06-07 18:58:24 +0300 | |
| Committer | 2026-06-07 18:58:24 +0300 | |
| Files | 74046fdbff4a37e332fad2dd8dfe5c96987a5be3 | |
| nix-751287e048315e06276b7d36b8620593e917f6df.tar nix-751287e048315e06276b7d36b8620593e917f6df.tar.gz nix-751287e048315e06276b7d36b8620593e917f6df.zip | ||
| Parent | 8c334b6e270f778425d1dd13584509758dfbb516 (diff) | |
feat(machines/marduk): Access ftp through http://ftp.marduk.int
2 files changed, 22 insertions, 0 deletions
| -rw-r--r-- | machines/marduk/configuration.nix | 1 | ||||
| -rw-r--r-- | machines/marduk/httpd.nix | 21 |
diff --git a/machines/marduk/configuration.nix b/machines/marduk/configuration.nix index bef2e93..23c1441 100644 --- a/machines/marduk/configuration.nix +++ b/machines/marduk/configuration.nix @@ -5,6 +5,7 @@ ./mail.nix ./aim.nix ./minecraft.nix + ./httpd.nix ./kamen.nix ]; diff --git a/machines/marduk/httpd.nix b/machines/marduk/httpd.nix new file mode 100644 index 0000000..276771c --- /dev/null +++ b/machines/marduk/httpd.nix @@ -0,0 +1,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> + ''; + }; + }; + }; +} |
