Skip to content

netzon/cloudflare-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Installation

npm install -g @netzon-oss/cloudflare-watch

Pingdom Cloudflare Sync

This is a very simple program that syncs the IP addresses of Pingdom's probes to a Cloudflare list. It is written in TypeScript and uses the Cloudflare API and IPInfo for reporting IP information.

Only supports https://my.pingdom.com/probes/ipv4 for now! Some issues encountered when dealing with ipv6.

Usage

cw pingdom \
     --output "output.json" \
     --sourceUrl "https://my.pingdom.com/probes/ipv4" \
     --listId "{cloudflare_list_id}" \
     --tokenIpInfo "{ipinfo_token}" \
     --token "{cloudflare_token}" \
     --accountId "{cloudflare_account_id}" \
     --email "{cloudflare_email_address}"

Local Dev Usage

npm run build && node dist/index.js pingdom \
     --output "output.json" \
     --sourceUrl "https://my.pingdom.com/probes/ipv4" \
     --listId "{cloudflare_list_id}" \
     --tokenIpInfo "{ipinfo_token}" \
     --token "{cloudflare_token}" \
     --accountId "{cloudflare_account_id}" \
     --email "{cloudflare_email_address}"

About

Set of tools for Cloudflare.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published