linde: set up as backup web server
Alan Pearce alan@alanpearce.eu
Sun, 02 Jun 2024 12:40:19 +0200
1 files changed, 14 insertions(+), 0 deletions(-)
jump to
M system/linde.nix → system/linde.nix
@@ -685,6 +685,20 @@ { "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";