From 83b056bc08c059df4cf951d0ba6a79ed463c7078 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 20 Nov 2025 22:29:29 +0000 Subject: [PATCH] Remove tome pages --- .../server/home02/oliverdavies-uk/default.nix | 36 +------------------ 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/modules/server/home02/oliverdavies-uk/default.nix b/modules/server/home02/oliverdavies-uk/default.nix index 356fbc26..5024da30 100644 --- a/modules/server/home02/oliverdavies-uk/default.nix +++ b/modules/server/home02/oliverdavies-uk/default.nix @@ -8,38 +8,6 @@ redirects = builtins.concatStringsSep "\n" ( map (r: "rewrite ^${r.from}/?$ ${r.to} redirect;") (import ./_redirects.nix) ); - - tome = { - root = "/var/www/vhosts/website-tome"; - - paths = [ - "core" - "sites/default/files" - "themes/custom/opdavies" - - # TODO: move back to Sculpin. - "archive" - "automated-testing" - "daily/.+" - "examples" - "homelab" - "podcast" - "rss/bb.xml" - "rss/daily.xml" - "testing" - ]; - }; - - tomeLocations = builtins.listToAttrs ( - map (path: { - name = "~ ^/${path}"; - - value = { - root = tome.root; - tryFiles = "$uri $uri.html $uri/index.html =404"; - }; - }) tome.paths - ); in { security.acme = { @@ -69,9 +37,7 @@ } ]; - locations = tomeLocations // { - "/".tryFiles = "$uri $uri.html $uri/index.html =404"; - }; + locations."/".tryFiles = "$uri $uri.html $uri/index.html =404"; extraConfig = '' port_in_redirect off;