Allow to override the https settings

This commit is contained in:
Vladimir Pouzanov 2022-12-09 19:23:50 +00:00 committed by GitHub
parent 2ee8b6ee74
commit 65aed3b37f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/";