diff options
author | Naïm Favier <n@monade.li> | 2022-12-10 16:00:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 16:00:28 +0100 |
commit | bd07f70e55dd172f2a01dfce525da3a8b35627f5 (patch) | |
tree | 1fd83dd3b24a0c31e1d9409b25192ae57d9dc0b1 /nixos | |
parent | 65a31bffd8491a2d7314c8b392d30c459b811fd7 (diff) | |
parent | 65aed3b37f61653d4d60c997abf885b6dacd5a16 (diff) |
Merge pull request #205358 from farcaller/patch-3
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/mastodon.nix | 5 |
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 35b96734be77d..a6cd7432db24a 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/"; |