summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--system/linde.nix14
1 files changed, 14 insertions, 0 deletions
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";