From 754c324f809cf1f012a1748f8d56550c03f53dc7 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 25 Nov 2023 18:31:21 +0000 Subject: [PATCH] Server homesite at root domain --- services/caddy.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/caddy.nix b/services/caddy.nix index 3e473280..917814e3 100644 --- a/services/caddy.nix +++ b/services/caddy.nix @@ -3,8 +3,10 @@ services.caddy = { enable = true; email = "evie@xenia.me.uk"; - virtualHosts."localhost".extraConfig = '' - respond "Hello, world!" + virtualHosts."xenia.me.uk".extraConfig = '' + file_server * { + root /var/www/homesite/ + } ''; }; services.fail2ban = {