From 014aa68ba5393573e04f36013a03f28cd8454ab6 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 20 Feb 2024 04:14:03 +0000 Subject: [PATCH] Make mastodon-streaming and mastodon-web Unix sockets use different RuntimeDirectory's systemd doesn't support this https://github.com/systemd/systemd/issues/5394 and it's surprising that it's even worked until recently --- mastodon.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon.conf b/mastodon.conf index fbf0658..02385d5 100644 --- a/mastodon.conf +++ b/mastodon.conf @@ -4,7 +4,7 @@ map $http_upgrade $connection_upgrade { } upstream web { - server unix:/run/mastodon/mastodon-web.sock fail_timeout=0; + server unix:/run/mastodon-web/mastodon-web.sock fail_timeout=0; } upstream streaming { @@ -12,7 +12,7 @@ upstream streaming { # to ensure load is distributed evenly. least_conn; - server unix:/run/mastodon/mastodon-streaming.sock fail_timeout=0; + server unix:/run/mastodon-streaming/mastodon-streaming.sock fail_timeout=0; # Uncomment these lines for load-balancing multiple instances of streaming for scaling, # this assumes your running the streaming server on ports 4000, 4001, and 4002: # server 127.0.0.1:4001 fail_timeout=0;