Update mastodon to v4.2.1

This commit is contained in:
fi 2023-11-20 23:16:20 +01:00
parent a89f984c0f
commit a40ff4193d
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
2 changed files with 31 additions and 7 deletions

View file

@ -3,6 +3,22 @@
services.nginx = {
enable = true;
group = "mastodon";
upstreams.streaming = {
extraConfig = ''
least_conn;
'';
servers = {
"unix:/run/mastodon-streaming/streaming-1.socket" = {
fail_timeout = "0";
};
"unix:/run/mastodon-streaming/streaming-2.socket" = {
fail_timeout = "0";
};
"unix:/run/mastodon-streaming/streaming-3.socket" = {
fail_timeout = "0";
};
};
};
virtualHosts."social.nekover.se" = {
forceSSL = true;
enableACME = true;
@ -29,7 +45,7 @@
"/system/".alias = "/var/lib/mastodon/public-system/";
"^~ /api/v1/streaming" = {
proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket";
proxyPass = "http://streaming";
proxyWebsockets = true;
};