From c4551822cada1f096d32ee73c95252b1145071e9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Jun 2024 12:40:19 +0200 Subject: linde: set up as backup web server --- system/linde.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'system') diff --git a/system/linde.nix b/system/linde.nix index 3c17f498..3f1d5777 100644 --- a/system/linde.nix +++ b/system/linde.nix @@ -685,6 +685,20 @@ in "http://" = { # Needed for HTTP->HTTPS servers }; + "alanpearce.eu" = { + serverAliases = [ "www.alanpearce.eu" ]; + useACMEHost = "alanpearce.eu"; + extraConfig = '' + encode zstd gzip + root * /srv/http/website/public + file_server + ${security-headers {}} + handle_errors { + root * /srv/http/website/private + rewrite * 404.html + } + ''; + }; "${hostname}.alanpearce.eu" = { serverAliases = [ "https://" ]; useACMEHost = "alanpearce.eu"; -- cgit 1.4.1