summaryrefslogtreecommitdiff
path: root/hosts/kay/modules/www.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-01-03 07:50:15 +0530
committersinanmohd <sinan@sinanmohd.com>2024-01-03 07:50:15 +0530
commit4300e47819ee709774c22c6f3f243e1dc9539e57 (patch)
treec778a5df623e57ca04ab531459dbb937b1db150d /hosts/kay/modules/www.nix
parent5b5ba9f3cafaac9d8c98adfee8003822dc090159 (diff)
kay/www/static: init
Diffstat (limited to 'hosts/kay/modules/www.nix')
-rw-r--r--hosts/kay/modules/www.nix7
1 files changed, 7 insertions, 0 deletions
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;