From 4300e47819ee709774c22c6f3f243e1dc9539e57 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 3 Jan 2024 07:50:15 +0530 Subject: kay/www/static: init --- hosts/kay/modules/www.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index f8b3611..cae862a 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -71,6 +71,13 @@ in locations."= /".return = "307 https://www.${domain}"; }; + "static.${domain}" = { + forceSSL = true; + enableACME = true; + root = "${storage}/static"; + + locations."= /".return = "301 https://www.${domain}"; + }; "${fscusat}" = { forceSSL = true; enableACME = true; -- cgit v1.2.3