Fix hostnames in proxy

This commit is contained in:
niten 2023-07-26 11:32:21 -07:00
parent 49fde399ce
commit 6ab43c0f6d
1 changed files with 2 additions and 2 deletions

View File

@ -7,11 +7,11 @@ let
proxyConf = pkgs.writeText "mastodon-nginx.conf" '' proxyConf = pkgs.writeText "mastodon-nginx.conf" ''
http { http {
upstream backend { upstream backend {
server mastodon-web:3000 fail_timeout=0; server web:3000 fail_timeout=0;
} }
upstream streaming { upstream streaming {
server mastodon-streaming:4000 fail_timeout=0; server streaming:4000 fail_timeout=0;
} }
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g; proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g;