Updated sample nginx conf

This commit is contained in:
Eliot Berriot 2018-02-24 16:57:01 +01:00
parent 0955df1194
commit c6b965c8e2
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 5 additions and 2 deletions

View File

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