From 0d3bb29c73ac45f25c376cd9fc7240161385e04f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 24 Feb 2022 21:24:12 +0100 Subject: ... --- hosts/surtr/matrix.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'hosts/surtr') diff --git a/hosts/surtr/matrix.nix b/hosts/surtr/matrix.nix index a251002d..a178458a 100644 --- a/hosts/surtr/matrix.nix +++ b/hosts/surtr/matrix.nix @@ -92,6 +92,22 @@ }; }; + security.acme.domains = { + "element.synapse.li" = { + zone = "synapse.li"; + certCfg = { + postRun = '' + ${pkgs.systemd}/bin/systemctl try-restart nginx.service + ''; + }; + }; + "synapse.li".certCfg = { + postRun = '' + ${pkgs.systemd}/bin/systemctl try-restart nginx.service + ''; + }; + }; + systemd.services.nginx = { serviceConfig = { LoadCredential = [ -- cgit v1.2.3