-
Notifications
You must be signed in to change notification settings - Fork 2
/
wrangler.example.toml
45 lines (33 loc) · 1.32 KB
/
wrangler.example.toml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name = "craftstats"
main = "src/index.ts"
compatibility_date = "2024-05-12"
kv_namespaces = [
{ binding = "KV_SERVERS", id = "" },
]
rules = [
{ type = "Text", globs = ["**/*.svg"], fallthrough = true }
]
[vars]
# Retry when server ping failed
PING_ATTEMPTS = 2
# Errors will be sent as a Discord webhook to this URL
# WEBHOOK_URL = ""
# By default, stats in the indivudal servers charts are deleted after 2 hours (120 min)
RECENT_DELETE_AFTER_MIN = 120
# By default, the global server chart will have data with a 15-min interval
GLOBAL_PING_INTERVAL = 15
# By default, stats in the global server chart are deleted after 6 months (180 days)
GLOBAL_DELETE_AFTER_DAYS = 180
# You can define a token to edit the servers from the /edit page
# The token should be at least 10 characters
SERVERS_EDIT_TOKEN = ""
# You can define here the URL used to get the servers protocol for Minecraft: Java Edition
# If not defined, the workers will directly get the status from the server.
# Directly getting the status from the server may consume more CPU.
# STATUS_URL = "https://api.mcstatus.io/v2/status/java/{address}?query=false"
# URL used to get the servers status for Minecraft: Bedrock Edition
BEDROCK_STATUS_URl = "https://api.mcstatus.io/v2/status/bedrock/{address}"
[triggers]
crons = ["*/5 * * * *"]
[site]
bucket = "./frontend/dist"