From 955e6c6d3d4a5c8a6c9f35aa0593f244effc7322 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 9 Dec 2023 18:20:48 +0530 Subject: kay/www/themark: init --- hosts/kay/modules/www.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'hosts') diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index 2b0c7fb..a81adc2 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -4,6 +4,7 @@ let domain = config.userdata.domain; email = config.userdata.email; fscusat = "fscusat.org"; + mark = "themark.ing"; in { imports = [ @@ -62,6 +63,20 @@ in extraConfig = "add_header Content-Type text/html;"; }; }; + "${mark}" = { + forceSSL = true; + enableACME = true; + globalRedirect = "www.${mark}"; + }; + "www.${mark}" = { + forceSSL = true; + enableACME = true; + + locations."/" = { + return = "200 '

under construction, see you soon

'"; + extraConfig = "add_header Content-Type text/html;"; + }; + }; }; }; } -- cgit v1.2.3