Send down and back-up alerts to Mattermost (#6)
The webhook address is private: uptime.config.ts names it as secret:MATTERMOST_WEBHOOK and the worker reads the Worker secret of that name (bound in deploy.tf from the GitHub Actions secret). The address is kept out of the logs. Alerts wait 3 minutes before saying something is down.
This commit is contained in:
1 parent
cf977e65da
commit
7c3eb7debd
5 files changed
+53
-5
No files matched your search
@@ -105,6 +105,7 @@ jobs:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
TF_VAR_CLOUDFLARE_ACCOUNT_ID: ${{ steps.fetch_account_id.outputs.account_id }}
|
||||
TF_VAR_APPS_US_EAST_TARGET: ${{ secrets.APPS_US_EAST_TARGET }}
|
||||
TF_VAR_MATTERMOST_WEBHOOK: ${{ secrets.MATTERMOST_WEBHOOK }}
|
||||
D1_ID: ${{ env.D1_ID }}
|
||||
|
||||
# Currently Terraform Cloudflare provider doesn't support direct upload, use wrangler to upload instead.
|
||||
|
||||
Reference in new issue
Block a user