mirror of
https://github.com/tormachris/cf-workers-status-page.git
synced 2025-09-21 16:35:15 +02:00
Compare commits
3 Commits
f0ec1c016a
...
e/w2
Author | SHA1 | Date | |
---|---|---|---|
4394c872f5 | |||
998e3a9db9 | |||
beb4dc4220 |
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- e/w2
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 1 * *'
|
- cron: '0 0 1 * *'
|
||||||
@ -22,11 +23,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: cloudflare/wrangler-action@1.3.0
|
uses: WalshyDev/wrangler-action@walshy/pages-996-support-wrangler2
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
|
command: publish --env production
|
||||||
|
wranglerVersion: beta
|
||||||
preCommands: |
|
preCommands: |
|
||||||
wrangler kv:namespace create KV_STATUS_PAGE
|
wrangler kv:namespace create KV_STATUS_PAGE || echo "KV namespace already exists"
|
||||||
apt-get update && apt-get install -y jq
|
apt-get update && apt-get install -y jq
|
||||||
export KV_NAMESPACE_ID=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq -r ".[0].id")
|
export KV_NAMESPACE_ID=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq -r ".[0].id")
|
||||||
echo "[env.production]" >> wrangler.toml
|
echo "[env.production]" >> wrangler.toml
|
||||||
@ -42,7 +45,6 @@ jobs:
|
|||||||
SECRET_TELEGRAM_API_TOKEN
|
SECRET_TELEGRAM_API_TOKEN
|
||||||
SECRET_TELEGRAM_CHAT_ID
|
SECRET_TELEGRAM_CHAT_ID
|
||||||
SECRET_DISCORD_WEBHOOK_URL
|
SECRET_DISCORD_WEBHOOK_URL
|
||||||
environment: production
|
|
||||||
env:
|
env:
|
||||||
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
SECRET_SLACK_WEBHOOK_URL: ${{secrets.SECRET_SLACK_WEBHOOK_URL}}
|
SECRET_SLACK_WEBHOOK_URL: ${{secrets.SECRET_SLACK_WEBHOOK_URL}}
|
||||||
|
26
config.yaml
26
config.yaml
@ -1,6 +1,6 @@
|
|||||||
settings:
|
settings:
|
||||||
title: 'Status Page'
|
title: 'Status Page'
|
||||||
url: 'https://status.tormakristof.eu' # used for Slack messages
|
url: 'https://status-page.eidam.dev' # used for Slack messages
|
||||||
logo: logo-192x192.png # image in ./public/ folder
|
logo: logo-192x192.png # image in ./public/ folder
|
||||||
daysInHistogram: 90 # number of days you want to display in histogram
|
daysInHistogram: 90 # number of days you want to display in histogram
|
||||||
collectResponseTimes: true # collects avg response times from CRON locations
|
collectResponseTimes: true # collects avg response times from CRON locations
|
||||||
@ -15,11 +15,25 @@ settings:
|
|||||||
dayInHistogramNotOperational: ' incident(s)' # xx incident(s) recorded
|
dayInHistogramNotOperational: ' incident(s)' # xx incident(s) recorded
|
||||||
|
|
||||||
monitors:
|
monitors:
|
||||||
- id: webgateway # unique identifier
|
- id: workers-cloudflare-com # unique identifier
|
||||||
name: webgateway.tormakristof.eu
|
name: workers.cloudflare.com
|
||||||
description: 'On-prem webgateway status' # default=empty
|
description: 'You write code. They handle the rest.' # default=empty
|
||||||
url: 'https://tormakristof.eu/' # URL to fetch
|
url: 'https://workers.cloudflare.com/' # URL to fetch
|
||||||
method: GET # default=GET
|
method: GET # default=GET
|
||||||
expectStatus: 301 # operational status, default=200
|
expectStatus: 200 # operational status, default=200
|
||||||
followRedirect: false # should fetch follow redirects, default=false
|
followRedirect: false # should fetch follow redirects, default=false
|
||||||
|
linkable: false # allows the title to be a link, default=true
|
||||||
|
|
||||||
|
- id: www-cloudflare-com
|
||||||
|
name: www.cloudflare.com
|
||||||
|
description: 'Built for anything connected to the Internet.'
|
||||||
|
url: 'https://www.cloudflare.com'
|
||||||
|
method: GET
|
||||||
|
expectStatus: 200
|
||||||
linkable: true # allows the title to be a link, default=true
|
linkable: true # allows the title to be a link, default=true
|
||||||
|
|
||||||
|
- id: blog-cloudflare-com
|
||||||
|
name: The Cloudflare Blog
|
||||||
|
url: 'https://blog.cloudflare.com/'
|
||||||
|
method: GET
|
||||||
|
expectStatus: 200
|
||||||
|
@ -6,7 +6,7 @@ webpack_config = "node_modules/flareact/webpack"
|
|||||||
compatibility_date = "2021-07-23"
|
compatibility_date = "2021-07-23"
|
||||||
|
|
||||||
[triggers]
|
[triggers]
|
||||||
crons = ["*/2 * * * *"]
|
crons = ["* * * * *"]
|
||||||
|
|
||||||
[site]
|
[site]
|
||||||
bucket = "out"
|
bucket = "out"
|
||||||
|
Reference in New Issue
Block a user