diff options
| Commit | 4a93734a74aaefa2f85c9a5483d1668483209267 (patch) | |
|---|---|---|
| Author | 2026-01-24 23:39:28 +0200 | |
| Committer | 2026-01-24 23:39:28 +0200 | |
| Files | 0f6c1caf2f0f13d56baeaedb4796f003490be7dd /machines/marduk/httpd.nix | |
| nix-4a93734a74aaefa2f85c9a5483d1668483209267.tar nix-4a93734a74aaefa2f85c9a5483d1668483209267.tar.gz nix-4a93734a74aaefa2f85c9a5483d1668483209267.zip | ||
| Parent | 705da9ba2e25fad5f680896f50307f3373d621e2 (diff) | |
feat(machines)!: Split duties between marduk and uttu
1 files changed, 0 insertions, 40 deletions
| -rw-r--r-- | machines/marduk/httpd.nix | 40 |
diff --git a/machines/marduk/httpd.nix b/machines/marduk/httpd.nix deleted file mode 100644 index eb6d8af..0000000 --- a/machines/marduk/httpd.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ config, ... }: let - inherit (config.constants) ip tld; -in { - services.dnsmasq.settings.address = [ - "/server.${tld}/ftp.${tld}/samba.${tld}/${ip}" - ]; - - services.httpd = { - virtualHosts = { - "server.${tld}" = { - listen = [ { port = 80; } ]; - documentRoot = "/var/www/server"; - locations."/server-status".extraConfig = '' - SetHandler server-status - ''; - }; - - #== File servers ==# - - "samba.${tld}" = rec { - listen = [ { port = 80; } ]; - documentRoot = "/NetworkDirectory"; - extraConfig = '' - <Directory "${documentRoot}"> - IndexOptions +NameWidth=* +Charset=UTF-8 - </Directory> - ''; - }; - "ftp.${tld}" = rec { - listen = [ { port = 80; } ]; - documentRoot = "/home/ftp"; - extraConfig = '' - <Directory "${documentRoot}"> - IndexOptions +NameWidth=* +Charset=UTF-8 - </Directory> - ''; - }; - }; - }; -} |
