HistoryPurge: Clearing 219 old commits

This commit is contained in:
xpk
2024-10-24 23:09:21 +08:00
commit d08b7cac59
348 changed files with 376141 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# this script requires httpie and cfcli
#
cfcli zones -f json | jq -cr '.[] | .name,.id' | paste - - | awk '{print $1,$2}' | while read d k; do
cfcli ls -d $d -f json | jq -cr '.[] | select(.type == "A") | .name' | while read s; do
cat template.json | sed s/REPLACE_ME/$s/g | http https://api.cloudflare.com/client/v4/zones/$k/healthchecks \
X-Auth-Email:ken.fong@rackspace.com \
X-Auth-Key:xxx
done
+25
View File
@@ -0,0 +1,25 @@
{
"name": "site-monitor",
"description": "Health check",
"check_regions": [
"SEAS"
],
"type": "HTTPS",
"consecutive_successes": 1,
"consecutive_fails": 2,
"http_config": {
"method": "GET",
"port": 443,
"path": "/",
"expected_codes": [
"200"
],
"follow_redirects": true,
"allow_insecure": false
},
"timeout": 5,
"retries": 2,
"interval": 60,
"address": "REPLACE_ME"
}