From 65aed3b37f61653d4d60c997abf885b6dacd5a16 Mon Sep 17 00:00:00 2001 From: Vladimir Pouzanov Date: Fri, 9 Dec 2022 19:23:50 +0000 Subject: [PATCH] Allow to override the https settings --- nixos/modules/services/web-apps/mastodon.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix index 35b96734be77..a6cd7432db24 100644 --- a/nixos/modules/services/web-apps/mastodon.nix +++ b/nixos/modules/services/web-apps/mastodon.nix @@ -658,8 +658,9 @@ in { recommendedProxySettings = true; # required for redirections to work virtualHosts."${cfg.localDomain}" = { root = "${cfg.package}/public/"; - forceSSL = true; # mastodon only supports https - enableACME = true; + # mastodon only supports https, but you can override this if you offload tls elsewhere. + forceSSL = lib.mkDefault true; + enableACME = lib.mkDefault true; locations."/system/".alias = "/var/lib/mastodon/public-system/";