From c6b965c8e215e9a1eb78b59cd839c06f63650e2a Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Sat, 24 Feb 2018 16:57:01 +0100 Subject: [PATCH] Updated sample nginx conf --- deploy/nginx.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ""; }