From 7ad207766b0f8ebf522035061f43032bb4e67c59 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 26 Feb 2023 13:54:45 +0900 Subject: [PATCH] ops: Update nginx-cache-warmer for new pool slugs API --- production/nginx-cache-warmer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/nginx-cache-warmer b/production/nginx-cache-warmer index db025a137..cb742caee 100755 --- a/production/nginx-cache-warmer +++ b/production/nginx-cache-warmer @@ -1,6 +1,6 @@ #!/usr/bin/env zsh hostname=$(hostname) -slugs=(`curl -sSL https://raw.githubusercontent.com/mempool/mining-pools/master/pools.json | jq -r '.slugs[]'`) +slugs=(`curl -sSL https://${hostname}/api/v1/mining/pools/3y|jq -r -S '(.pools[].slug)'`) warm() {