-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sh.example
More file actions
37 lines (29 loc) · 1.04 KB
/
Copy pathconfig.sh.example
File metadata and controls
37 lines (29 loc) · 1.04 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
#!/usr/bin/env bash
# used by crons/thermal-*
# degrees in Celsius which we regard as too high
THERMAL_ALERT=70
# used by crons/storage-*
STORAGE_MONITOR=("/")
# used by crons/storage-alert.sh
# must declare associated array explicitly
declare -A STORAGE_ALERT
# storage in GiB
STORAGE_ALERT=(["/"]=10)
# used by cloudflare.sh, discord.sh
SERVER_DOMAIN=$(hostname)
# used by cloudflare.sh
# default is to only update dns records which have the comment "managed by <SERVER-HOSTNAME>"
CLOUDFLARE_TOKEN="<API_TOKEN DNS:Read, DNS:Edit>"
CLOUDFLARE_ZONE="<ZONE_ID>"
CLOUDFLARE_FILTER_PREFIX="comment.contains=managed+by+$SERVER_DOMAIN&"
# used by discord.sh
DISCORD_SERVER_NAME="$SERVER_DOMAIN"
DISCORD_TITLE_SUFFIX="· $DISCORD_SERVER_NAME"
DISCORD_GENERAL_HOOK="<WEBHOOK_URL_HERE>?wait=true"
# you can send alerts to a different channel, if desired
# via "-a" also used by the "*-alert.sh" scripts in /crons/
DISCORD_ALERT_HOOK="$DISCORD_GENERAL_HOOK"
# used by sync-keys.sh
GITEA_DOMAIN="<GITEA_DOMAIN>"
GITEA_TOKEN="<API_TOKEN User:Read>"
GITEA_FILTER=""