diff --git a/deploy/nginx.conf b/deploy/nginx.conf index dfdbac2ae..cf3b34056 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -1,6 +1,9 @@ # Ensure you update at least the server_name variables to match your own -# domain +# transcode cache +proxy_cache_path /tmp/funkwhale-transcode levels=1:2 keys_zone=transcode:10m max_size=1g inactive=7d; + +# domain upstream funkwhale-api { # depending on your setup, you may want to udpate this server localhost:5000; @@ -85,7 +88,7 @@ server { } proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Port $server_port; - proxy_pass http://api:12081/api/v1/trackfiles/viewable/?$query; + proxy_pass http://funkwhale-api/api/v1/trackfiles/viewable/?$query; proxy_pass_request_body off; proxy_set_header Content-Length ""; }