Update mastodon to v4.2.1
This commit is contained in:
parent
a89f984c0f
commit
a40ff4193d
2 changed files with 31 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue