From cae1e28616013c4adc515307453093681376f7b7 Mon Sep 17 00:00:00 2001 From: Karl Grube <karl@hudlergrube.com> Date: Wed, 22 Jan 2025 12:11:52 +0100 Subject: [PATCH] commented out stdout so that it works... --- templates/pypi_site.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/pypi_site.j2 b/templates/pypi_site.j2 index 918bd25..1e98279 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. -- GitLab