diff --git a/templates/pypi_site.j2 b/templates/pypi_site.j2 index 918bd253748b5931941f31bd389d47e945be2239..1e98279246dac53a46650ae0831f17d3657792c7 100644 --- a/templates/pypi_site.j2 +++ b/templates/pypi_site.j2 @@ -2,12 +2,12 @@ log_format pypi_cache '$remote_addr - $host [$time_local] ' 'request_time=$request_time upstream_time=$upstream_response_time ' 'cache_status=$upstream_cache_status \t' '$status "$request" $body_bytes_sent'; -access_log /dev/stdout pypi_cache buffer=64k flush=1s; +#access_log /dev/stdout pypi_cache buffer=64k flush=1s; # Log to file, can be useful for dev # access_log /var/log/nginx/cache.log pypi_cache buffer=64k flush=1s; # Cache 50G worth of packages for up to 1 month -proxy_cache_path /var/lib/nginx/pypi levels=1:2 keys_zone=pypi:16m inactive=1M max_size=50G use_temp_path=off; +proxy_cache_path /var/www/pypi levels=1:2 keys_zone=pypi:16m inactive=1M max_size=50G use_temp_path=off; # Having the same upstream server listed twice allegedly forces nginx to retry # connections and not fail the request immediately.