Summary Files Commits Branches @commit @diff @stats
path: root / machines / marduk / httpd.nix
diff options
context:
space:
mode:
Commit751287e048315e06276b7d36b8620593e917f6df (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-06-07 18:58:24 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-06-07 18:58:24 +0300
Files74046fdbff4a37e332fad2dd8dfe5c96987a5be3 /machines/marduk/httpd.nix
nix-751287e048315e06276b7d36b8620593e917f6df.tar
nix-751287e048315e06276b7d36b8620593e917f6df.tar.gz
nix-751287e048315e06276b7d36b8620593e917f6df.zip
Parent8c334b6e270f778425d1dd13584509758dfbb516 (diff)
feat(machines/marduk): Access ftp through http://ftp.marduk.int
1 files changed, 21 insertions, 0 deletions
-rw-r--r--machines/marduk/httpd.nix21
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>
+ '';
+ };
+ };
+ };
+}