From 888481237b770c5c9a8a8204b3ded884e2b7a313 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 22 Feb 2024 07:05:34 +0000 Subject: [PATCH] Add landing page to domain, move blog to blog subdomain --- services/caddy.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/services/caddy.nix b/services/caddy.nix index bb82ed4b..e2b824ca 100644 --- a/services/caddy.nix +++ b/services/caddy.nix @@ -3,11 +3,18 @@ services.caddy = { enable = true; email = "evie@xenia.me.uk"; - virtualHosts."xenia.me.uk".extraConfig = '' - file_server * { - root /var/www/homesite/ - } - ''; + virtualHosts = { + "xenia.me.uk".extraConfig = '' + file_server * { + root /var/www/landing/ + } + ''; + "blog.xenia.me.uk".extraConfig = '' + file_server * { + root /var/www/blog/ + } + ''; + }; }; services.fail2ban = { enable = true;