ops: Don't serve stale cache data for non-mainnet

This commit is contained in:
wiz
2024-05-10 00:44:53 +09:00
parent 9b83ac29b7
commit 659ef0b6b9
6 changed files with 16 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ location @mempool-liquid-api-v1-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;
@@ -91,7 +91,7 @@ location @mempool-liquid-api-v1-cache-warm {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;
@@ -149,7 +149,7 @@ location @esplora-liquid-api-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;

View File

@@ -78,7 +78,7 @@ location @mempool-liquidtestnet-api-v1-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;
@@ -95,7 +95,7 @@ location @mempool-liquidtestnet-api-v1-cache-warm {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;
@@ -153,7 +153,7 @@ location @esplora-liquidtestnet-api-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;

View File

@@ -12,7 +12,7 @@ location @mempool-signet-api-v1-lightning {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;

View File

@@ -78,7 +78,7 @@ location @mempool-signet-api-v1-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;
@@ -95,7 +95,7 @@ location @mempool-signet-api-v1-cache-warm {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;
@@ -153,7 +153,7 @@ location @esplora-signet-api-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;

View File

@@ -78,7 +78,7 @@ location @mempool-testnet-api-v1-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;
@@ -95,7 +95,7 @@ location @mempool-testnet-api-v1-cache-warm {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;
@@ -153,7 +153,7 @@ location @esplora-testnet-api-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;

View File

@@ -78,7 +78,7 @@ location @mempool-testnet4-api-v1-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;
@@ -95,7 +95,7 @@ location @mempool-testnet4-api-v1-cache-warm {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apiwarm;
proxy_cache_valid 200 10s;
proxy_redirect off;
@@ -153,7 +153,7 @@ location @esplora-testnet4-api-cache-forever {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_background_update on;
proxy_cache_use_stale updating;
proxy_cache_use_stale error;
proxy_cache apicold;
proxy_cache_valid 200 30d;
proxy_redirect off;