Remove tome pages
Some checks are pending
/ check (push) Waiting to run

This commit is contained in:
Oliver Davies 2025-11-20 22:29:29 +00:00
parent eed6a5f9a0
commit 83b056bc08

View file

@ -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;