From 58ec2867859613da33cf08e674f70224335c42eb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Mon, 9 Sep 2024 14:25:07 +0200 Subject: [PATCH] nixos/gancio: actually enable ssl by default. --- nixos/modules/services/web-apps/gancio.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/web-apps/gancio.nix b/nixos/modules/services/web-apps/gancio.nix index 0a2db3bce5f8..893f5702518a 100644 --- a/nixos/modules/services/web-apps/gancio.nix +++ b/nixos/modules/services/web-apps/gancio.nix @@ -157,11 +157,18 @@ in }; nginx = mkOption { - type = types.submodule (import ../web-servers/nginx/vhost-options.nix { inherit config lib; }); + type = types.submodule ( + lib.recursiveUpdate (import ../web-servers/nginx/vhost-options.nix { inherit config lib; }) { + # enable encryption by default, + # as sensitive login credentials should not be transmitted in clear text. + options.forceSSL.default = true; + options.enableACME.default = true; + } + ); default = { }; example = { - enableACME = true; - forceSSL = true; + enableACME = false; + forceSSL = false; }; description = "Extra configuration for the nginx virtual host of gancio."; }; @@ -260,8 +267,6 @@ in virtualHosts."${cfg.settings.hostname}" = mkMerge [ cfg.nginx { - enableACME = mkDefault true; - forceSSL = mkDefault true; locations = { "/" = { index = "index.html";