Repository navigation
Expand file tree
/
Copy pathexample.toml
More file actions
61 lines (54 loc) · 1.99 KB
/
Copy pathexample.toml
File metadata and controls
61 lines (54 loc) · 1.99 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[global]
name = "John"
full_name = "John Doe"
utc_offset = 0
heartbeat_auth_hash = "<ARGON2ID HASH>"
[pow]
# Generate the following secret using `openssl rand -hex 32`.
# This is used when generating PoW challenges; It ensures a client cannot guess
# what the next generated challenge will be, which blocks pre-computation attacks.
secret = "<256-BIT SECRET>"
# PoW difficulty. Already set to the recommended default.
# See: https://blog.trishtzy.com/2025/08/15/rate-limit-by-pow.html
difficulty = 4
[state]
tick_interval = 60 # in minutes
time_until_uncertain = 24 # in hours
time_until_missing = 72 # in hours
# Minimum server up-time required to make an autonomous state change.
# Safety net for sysadmins bringing back up the service after maintenance.
minimum_uptime = 60 # in minutes
[state.alive]
images = [
"/resources/happy-cat.webp",
"/resources/happy-cat-2.gif",
"/resources/happy-cat-3.gif",
"/resources/disco-cat.gif",
"/resources/dancing-cat.gif",
"/resources/dancing-cat-2.gif",
]
messages = [
"{0} is alive and well. Thank you for checking.",
"{0} is alive and well. We checked.",
"{0} is alive and well. Send snacks.",
"{0} is alive and well. Send cats.",
"{0} is still with us, don't worry.",
"{0} is still alive. Check again tomorrow.",
"{0} is still alive and uncontained.",
"{0} is still alive so far. Yay",
"{0} is alive... Would be crazy if they weren't",
"{0} is still alive. What made you check?",
"{0} is still alive. Might not be anymore if you refresh...",
]
[state.uncertain]
images = ["/resources/worried-cat.webp"]
messages = ["{0} has not sent a heartbeat in the past {1} hour{2}."]
[state.missing]
images = ["/resources/worried-cat.webp"]
messages = ["{0} has not sent a heartbeat in the past {1} hour{2}."]
[state.incapacitated]
images = ["/resources/worried-cat.webp"]
messages = ["{0} has not sent a heartbeat in the past {1} hour{2}."]
[state.dead]
images = ["/resources/sad-cat.webp"]
messages = ["{0} has passed away."]