From 8f17883b52db44d4b3a4111c1a01aa786852b616 Mon Sep 17 00:00:00 2001 From: tuxcoder Date: Mon, 13 Nov 2023 15:15:39 +0100 Subject: [PATCH] fix domain setup --- module.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module.nix b/module.nix index 8c64fec..027eea0 100644 --- a/module.nix +++ b/module.nix @@ -10,6 +10,10 @@ in services.lenticular-cloud = { enable = mkEnableOption "lenticluar service enable"; domain = mkOption { + type = lib.types.str; + example = "example.com"; + }; + service_domain = mkOption { type = lib.types.str; example = "account.example.com"; }; @@ -68,10 +72,10 @@ in }; services.nginx.enable = true; - services.nginx.virtualHosts."${cfg.domain}" = { + services.nginx.virtualHosts."${cfg.service_domain}" = { addSSL = true; enableACME = true; - serverName = cfg.domain; + serverName = cfg.service_domain; locations."/" = { recommendedProxySettings = true; proxyPass = "http://unix:/run/${username}/web.sock";