forked from exozyme/nginx
Use Unix sockets for Mastodon
This commit is contained in:
parent
26325e1218
commit
39753357f5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue