fix playmat api cache config

This commit is contained in:
Alex
2026-11-20 15:27:12 -07:00
parent 29daba607e
commit 653efa7416
-11
View File
@@ -65,12 +65,6 @@ data:
limit_req zone=scryfall_upstream burst=${IMGCACHE_API_BURST};
proxy_pass http://127.0.0.1:8081/cards/collection;
proxy_cache off;
proxy_cache scryfall_api;
proxy_cache_methods GET HEAD POST;
proxy_cache_lock on;
proxy_cache_key "$request_method$request_uri$request_body";
proxy_cache_valid 200 24h;
proxy_cache_valid 403 1m;
}
location /img/api/ {
limit_req zone=scryfall_upstream burst=${IMGCACHE_API_BURST};
@@ -82,11 +76,6 @@ data:
proxy_redirect https://cards.scryfall.io/ /img/cards/;
proxy_hide_header Location;
add_header Location $upstream_http_x_scryfall_card_image always;
proxy_cache scryfall_api;
proxy_cache_lock on;
proxy_cache_key "$request_method$request_uri";
proxy_cache_valid 200 301 302 24h;
proxy_cache_valid 403 1m;
}
location / { return 404; }
}