diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-02-08 19:02:22 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-02-09 17:19:24 +0530 |
commit | 05c7f64bd12d56f3fc066f61fc01351acb0ddb7b (patch) | |
tree | c0ba7b4967a18336cfcfaa0574942af3a96ebe95 /hosts/kay/modules/www.nix | |
parent | 08a6d64d9d71489196838ee63ae52a92f0147508 (diff) |
kay/acme/rfc2136: init
Diffstat (limited to 'hosts/kay/modules/www.nix')
-rw-r--r-- | hosts/kay/modules/www.nix | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index 7d0e646..a0b9c20 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -2,7 +2,6 @@ let domain = config.userdata.domain; - email = config.userdata.email; fscusat = "fscusat.org"; mark = "themark.ing"; storage = "/hdd/users/sftp/shr"; @@ -19,11 +18,6 @@ in allowedUDPPorts = [ 443 ]; }; - security.acme = { - acceptTerms = true; - defaults.email = email; - }; - services.nginx = { enable = true; package = pkgs.nginxQuic; @@ -42,7 +36,7 @@ in quic = true; http3 = true; forceSSL = true; - enableACME = true; + useACMEHost = domain; }; in { "${domain}" = defaultOpts // { @@ -93,9 +87,15 @@ in }; "${fscusat}" = defaultOpts // { + useACMEHost = null; + enableACME = true; + globalRedirect = "www.${fscusat}"; }; "www.${fscusat}" = defaultOpts // { + useACMEHost = null; + enableACME = true; + locations."/" = { return = "200 '<h1>under construction</h1>'"; extraConfig = "add_header Content-Type text/html;"; @@ -103,9 +103,15 @@ in }; "${mark}" = defaultOpts // { + useACMEHost = null; + enableACME = true; + globalRedirect = "www.${mark}"; }; "www.${mark}" = defaultOpts // { + useACMEHost = null; + enableACME = true; + locations."/" = { return = "200 '<h1>under construction, see you soon</h1>'"; extraConfig = "add_header Content-Type text/html;"; |