From 5b5ba9f3cafaac9d8c98adfee8003822dc090159 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 3 Jan 2024 07:48:59 +0530 Subject: kay/www/bin: init --- hosts/kay/modules/www.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hosts/kay/modules') diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index aec5d5a..f8b3611 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -5,6 +5,7 @@ let email = config.userdata.email; fscusat = "fscusat.org"; mark = "themark.ing"; + storage = "/hdd/users/sftp/shr"; in { imports = [ @@ -63,6 +64,13 @@ in enableACME = true; root = "/var/www/${domain}"; }; + "bin.${domain}" = { + forceSSL = true; + enableACME = true; + root = "${storage}/bin"; + + locations."= /".return = "307 https://www.${domain}"; + }; "${fscusat}" = { forceSSL = true; enableACME = true; -- cgit v1.2.3