feat: add more nginx recommended settings
This commit is contained in:
parent
614c907d8a
commit
4b7e7ae277
|
@ -9,6 +9,7 @@ in
|
||||||
# mastodon only supports https, but you can override this if you offload tls elsewhere.
|
# mastodon only supports https, but you can override this if you offload tls elsewhere.
|
||||||
forceSSL = lib.mkDefault true;
|
forceSSL = lib.mkDefault true;
|
||||||
enableACME = lib.mkDefault true;
|
enableACME = lib.mkDefault true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
|
||||||
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@ in {
|
||||||
proxyCachePath.cache = {
|
proxyCachePath.cache = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
};
|
};
|
||||||
# Nginx user needs access to mastodon unix sockets
|
# Nginx user needs access to mastodon unix sockets
|
||||||
users.users.nginx.extraGroups = [ "mastodon" ];
|
users.users.nginx.extraGroups = [ "mastodon" ];
|
||||||
|
|
Loading…
Reference in a new issue