feat: add more nginx recommended settings

This commit is contained in:
teutat3s 2023-10-29 03:37:22 +01:00
parent 614c907d8a
commit 4b7e7ae277
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 3 additions and 0 deletions

View file

@ -9,6 +9,7 @@ in
# mastodon only supports https, but you can override this if you offload tls elsewhere.
forceSSL = lib.mkDefault true;
enableACME = lib.mkDefault true;
recommendedGzipSettings = true;
locations."/system/".alias = "/var/lib/mastodon/public-system/";

View file

@ -15,7 +15,9 @@ in {
proxyCachePath.cache = {
enable = true;
};
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
# Nginx user needs access to mastodon unix sockets
users.users.nginx.extraGroups = [ "mastodon" ];