Use Unix sockets for Mastodon

This commit is contained in:
Anthony Wang 2022-01-04 17:44:59 -06:00
parent 26325e1218
commit 39753357f5
Signed by: a
GPG Key ID: BC96B00AEC5F2D76

View File

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