From 87614b9ccbb3fc66fbdb30de636a3aea1f58e225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 12 Apr 2024 15:49:02 +0200 Subject: [PATCH] add docs.clan.lol --- modules/web01/homepage.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/web01/homepage.nix b/modules/web01/homepage.nix index 6de7afb..145cd06 100644 --- a/modules/web01/homepage.nix +++ b/modules/web01/homepage.nix @@ -39,6 +39,22 @@ locations."/thaigersprint".return = "307 https://pad.lassul.us/s/clan-thaigersprint"; }; + virtualHosts."docs.clan.lol" = { + forceSSL = true; + enableACME = true; + # to be deployed via rsync + root = "/var/www/docs.clan.lol"; + extraConfig = '' + charset utf-8; + source_charset utf-8; + ''; + + # Make sure to expire the cache after 1 hour + locations."/".extraConfig = '' + add_header Cache-Control "public, max-age=3600"; + ''; + }; + virtualHosts."www.clan.lol" = { forceSSL = true; enableACME = true;