ops: Fix broken nginx cache configuration

This commit is contained in:
wiz
2024-02-06 13:53:03 -05:00
parent 47d221fd3b
commit 87a613e4dc
9 changed files with 33 additions and 29 deletions

View File

@@ -77,7 +77,7 @@ location @mempool-api-v1-cache-forever {
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache api;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;
@@ -94,7 +94,7 @@ location @mempool-api-v1-cache-hot {
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache api;
proxy_cache apihot;
proxy_cache_valid 200 1s;
proxy_redirect off;
}
@@ -109,7 +109,7 @@ location @mempool-api-v1-cache-warm {
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache api;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;
}
@@ -122,7 +122,7 @@ location @mempool-api-v1-cache-normal {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache api;
proxy_cache apinormal;
proxy_cache_valid 200 2s;
proxy_redirect off;
@@ -167,7 +167,7 @@ location @esplora-api-cache-forever {
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache api;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;