summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Pouzanov <farcaller@gmail.com>2022-12-09 19:23:50 +0000
committerGitHub <noreply@github.com>2022-12-09 19:23:50 +0000
commit65aed3b37f61653d4d60c997abf885b6dacd5a16 (patch)
treed5e2dacdc5190f38cbd6e428967f2a0c3694bd64
parent2ee8b6ee742ac90351fd63c3559f73bdb83e232f (diff)
Allow to override the https settings
-rw-r--r--nixos/modules/services/web-apps/mastodon.nix5
1 files 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/";