Cologler / cf-notifications-to-pushover-cfworker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cf-notifications to pushover

Forward Cloudflare notifications to pushover with Cloudflare worker.

How to use

  1. Clone the repo;
  2. Run pnpm i in your terminal;
  3. Run pnpm run deploy in your terminal;
  4. log in to your pushover, you can find your user key at https://pushover.net/;
  5. Register your app on https://pushover.net/apps/build, you will find your app token;
  6. Go to your Cloudflare dash, and set up environment variables PUSHOVER_APP_TOKEN and PUSHOVER_USER_KEY (hide is recommended);
  7. If you wish, you can set up environment variables WEBHOOK_SECRET (hide is recommended);
  8. Go to your Cloudflare notifications page and add the Webhook. The URL is your worker's URL and the optional secret should be the same as WEBHOOK_SECRET;
  9. It should work now;

Many user to one worker

  1. Leave environment variable WEBHOOK_SECRET to empty;
  2. Set up environment variable IS_WEBHOOK_SECRET_USER_KEY to 1;
  3. Now, the notification webhook secret will use as the user key;

About


Languages

Language:TypeScript 100.0%