Skip to content

Commit

Permalink
Set use_temp_path=off
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
hauntsaninja committed Dec 10, 2024
1 parent cd65d5d commit 5376784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ http {
# 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;
proxy_cache_path /var/lib/nginx/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.
Expand Down

0 comments on commit 5376784

Please sign in to comment.