From 7df420c27ebe7daaa4fd099c457ce9a9075b840e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 16 May 2019 23:23:05 +0200 Subject: Add certificate creation and handling to websites --- nixops/modules/websites/emilia/default.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'nixops/modules/websites/emilia') diff --git a/nixops/modules/websites/emilia/default.nix b/nixops/modules/websites/emilia/default.nix index 4e32bec..47257b7 100644 --- a/nixops/modules/websites/emilia/default.nix +++ b/nixops/modules/websites/emilia/default.nix @@ -47,13 +47,6 @@ in { }; config = lib.mkIf cfg.production.enable { - security.acme.certs."emilia" = config.services.myCertificates.certConfig // { - domain = "saison-photo.org"; - extraDomains = { - "www.saison-photo.org" = null; - }; - }; - system.activationScripts.emilia = '' install -m 0755 -o wwwrun -g wwwrun -d ${varDir} ''; @@ -62,10 +55,11 @@ in { ln -s ${siteDir} $out/webapps/${webappName} ''; services.websites.production.vhostConfs.emilia = { - certName = "emilia"; - hosts = [ "saison-photo.org" "www.saison-photo.org" ]; - root = root; - extraConfig = [ + certName = "emilia"; + certMainHost = "saison-photo.org"; + hosts = [ "saison-photo.org" "www.saison-photo.org" ]; + root = root; + extraConfig = [ '' DirectoryIndex pause.html -- cgit v1.2.3