Verified Commit 90a3fd15 authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

dbscripts: Fix proxy_cache_key used for mirrorauth

Use $uri instead of $request_uri in proxy_cache_key to avoid caching
based on the original URI which is different for each pacman request.

The cache keys are now in the following format:

  httpsarchlinux.org/devel/mirrorauth/Basic <credentials>
parent daea52c6
......@@ -42,7 +42,7 @@ server {
# Cache responses from the auth proxy
proxy_cache auth_cache;
proxy_cache_key "$scheme$proxy_host$request_uri$http_authorization";
proxy_cache_key $scheme$proxy_host$uri$http_authorization;
# Authentication to archweb
proxy_pass https://archlinux.org;
......
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