From 751287e048315e06276b7d36b8620593e917f6df Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 7 Jun 2026 18:58:24 +0300 Subject: feat(machines/marduk): Access ftp through http://ftp.marduk.int --- machines/marduk/configuration.nix | 1 + machines/marduk/httpd.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 machines/marduk/httpd.nix 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 = '' + + IndexOptions +NameWidth=* +Charset=UTF-8 + + ''; + }; + }; + }; +} -- cgit v1.3.1-26-gb76a