From 39753357f5d9f65a3f59549237efaa26ce5dc23d Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 4 Jan 2022 17:44:59 -0600 Subject: [PATCH] Use Unix sockets for Mastodon --- mastodon.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon.conf b/mastodon.conf index f478d0f..22b3621 100644 --- a/mastodon.conf +++ b/mastodon.conf @@ -4,11 +4,11 @@ map $http_upgrade $connection_upgrade { } upstream backend { - server localhost:3000 fail_timeout=0; + server unix:/run/mastodon/mastodon-web.sock fail_timeout=0; } upstream streaming { - server localhost:4000 fail_timeout=0; + server unix:/run/mastodon/mastodon-streaming.sock fail_timeout=0; } proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g;