From 38c749164026f26237c964fa741c81450ea7abc5 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 22 Nov 2023 22:00:58 +0800 Subject: [PATCH] services.mastodon: fix --- modules/services/mastodon.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/mastodon.nix b/modules/services/mastodon.nix index e7c89a75..afec3dd1 100644 --- a/modules/services/mastodon.nix +++ b/modules/services/mastodon.nix @@ -15,7 +15,7 @@ inputs: services.mastodon = { enable = true; - streamingProcesses = 3; + streamingProcesses = 1; enableUnixSocket = false; localDomain = mastodon.hostname; database = @@ -53,7 +53,7 @@ inputs: { upstream = "http://127.0.0.1:${toString inputs.config.services.mastodon.webPort}"; websocket = true; }; "/api/v1/streaming/".proxy = { - upstream = "http://127.0.0.1:${toString inputs.config.services.mastodon.streamingPort}"; + upstream = "http://unix:/run/mastodon-streaming/streaming-1.socket"; websocket = true; }; };