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
This commit is contained in:
Anthony Wang 2024-02-20 04:14:03 +00:00
parent 1ca4e9c17a
commit 014aa68ba5
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ

View file

@ -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;