Verified Commit 68a977a5 authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

dbscripts: Prevent concurrent mirrorauth requests

- Set "proxy_cache_lock on" to avoid sending more than one auth request
  to archweb when a cache entry doesn't exist for the credentials.
- Set "proxy_cache_use_stale updating" to prevent nginx sending multiple
  auth requests to archweb while the cache is being refreshed. [1]

parent 90a3fd15
Pipeline #8013 passed with stage
in 32 seconds
......@@ -44,6 +44,10 @@ server {
proxy_cache auth_cache;
proxy_cache_key $scheme$proxy_host$uri$http_authorization;
# Minimize the number of requests to archweb
proxy_cache_lock on;
proxy_cache_use_stale updating;
# Authentication to archweb
proxy_ssl_verify on;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment