From 20327720d16bf1f4a3b336d1148d77e711064029 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 13 Jun 2023 12:09:54 -0700 Subject: [PATCH] updated onlyoffice and nginx ssl --- modules/onlyoffice.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/onlyoffice.nix b/modules/onlyoffice.nix index 6ddffbc..970b9e6 100644 --- a/modules/onlyoffice.nix +++ b/modules/onlyoffice.nix @@ -12,4 +12,17 @@ let services.nginx.defaultSSLListenPort = 9443; services.nginx.defaultHTTPListenPort = 9080; + security.acme = { + acceptTerms = true; + defaults.email = "cert+${caddy_email_for_zerossl}"; + certs."${personalization.onlyoffice_url}" = { + webroot = "/var/lib/acme/challenges-com"; + email = "cert+${caddy_email_for_zerossl}"; + group = "nginx"; + extraDomainNames = [ "www.${personalization.onlyoffice_url}" ]; + }; + }; + + users.users.nginx.extraGroups = [ "acme" ]; + } \ No newline at end of file