From dcc12e4df64827133fba2996febc03a6ddd0fcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Wed, 8 Jul 2020 23:47:56 +0200 Subject: [PATCH] nixos/jitsi-meet: enableACME by default --- nixos/modules/services/web-apps/jitsi-meet.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/web-apps/jitsi-meet.nix b/nixos/modules/services/web-apps/jitsi-meet.nix index 569901a869b..d2cdbdc8ba1 100644 --- a/nixos/modules/services/web-apps/jitsi-meet.nix +++ b/nixos/modules/services/web-apps/jitsi-meet.nix @@ -135,15 +135,11 @@ in description = '' Whether to enable nginx virtual host that will serve the javascript application and act as a proxy for the XMPP server. Further nginx configuration can be done by adapting - . It is highly recommended to - enable the and options: - - - services.nginx.virtualHosts.''${config.services.jitsi-meet.hostName} = { - enableACME = true; - forceSSL = true; - }; - + . + When this is enabled, ACME will be used to retrieve a TLS certificate by default. To disable + this, set the to + false and if appropriate do the same for + . ''; }; @@ -278,6 +274,8 @@ in services.nginx = mkIf cfg.nginx.enable { enable = mkDefault true; virtualHosts.${cfg.hostName} = { + enableACME = mkDefault true; + forceSSL = mkDefault true; root = pkgs.jitsi-meet; locations."~ ^/([a-zA-Z0-9=\\?]+)$" = { extraConfig = ''