summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-12-09 18:20:48 +0530
committersinanmohd <sinan@sinanmohd.com>2023-12-09 18:20:58 +0530
commit955e6c6d3d4a5c8a6c9f35aa0593f244effc7322 (patch)
tree18c16e762780032fe0f8e0854ec04e5c1080b3a7 /hosts
parenta8a38a61b362d1ec93ac2d6885ad1102671ae51e (diff)
kay/www/themark: init
Diffstat (limited to 'hosts')
-rw-r--r--hosts/kay/modules/www.nix15
1 files changed, 15 insertions, 0 deletions
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 '<h1>under construction, see you soon</h1>'";
+ extraConfig = "add_header Content-Type text/html;";
+ };
+ };
};
};
}