forked from exozyme/nginx
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:
parent
1ca4e9c17a
commit
014aa68ba5
|
@ -4,7 +4,7 @@ map $http_upgrade $connection_upgrade {
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream web {
|
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 {
|
upstream streaming {
|
||||||
|
@ -12,7 +12,7 @@ upstream streaming {
|
||||||
# to ensure load is distributed evenly.
|
# to ensure load is distributed evenly.
|
||||||
least_conn;
|
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,
|
# 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:
|
# this assumes your running the streaming server on ports 4000, 4001, and 4002:
|
||||||
# server 127.0.0.1:4001 fail_timeout=0;
|
# server 127.0.0.1:4001 fail_timeout=0;
|
||||||
|
|
Loading…
Reference in a new issue