-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
31 lines (26 loc) · 982 Bytes
/
Copy pathwrangler.toml
File metadata and controls
31 lines (26 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#:schema node_modules/wrangler/config-schema.json
name = "cfworker-host-alive"
main = "src/index.js"
compatibility_date = "2025-01-09"
# Disable Preview URLs
preview_urls = false
# Cron Triggers
[triggers]
crons = ["* * * * *"] # 1-58/3 * * * * = run every 3 minute (but start at 2nd minute of each hour)
# Workers Logs
[observability]
enabled = true
# Invocation logs are disabled
[observability.logs]
invocation_logs = false
# Environment variable bindings
[vars]
DISCONNECTION_THRESHOLD = 75 # Depends on how often the CRON job runs
RECONNECTION_THRESHOLD = 60 # Depends on how often the CRON job runs
# PO_APPTOKEN = "PUSHOVER_APP_TOKEN" # Ensure to set secrets with `npx wrangler secret put PO_APPTOKEN` after deployment
# PO_USERKEY = "PUSHOVER_USER_KEY" # Ensure to set secrets with `npx wrangler secret put PO_USERKEY` after deployment
# Bind D1 database
[[d1_databases]]
binding = "MONITORED_HOSTS_DB"
database_name = "host-alive"
database_id = "YOUR_DATABASE_ID"