aboutsummaryrefslogtreecommitdiffstats
path: root/global-config.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'global-config.rsc')
-rw-r--r--global-config.rsc26
1 files changed, 22 insertions, 4 deletions
diff --git a/global-config.rsc b/global-config.rsc
index fa32b16..86d528a 100644
--- a/global-config.rsc
+++ b/global-config.rsc
@@ -6,6 +6,12 @@
# global configuration
# https://rsc.eworm.de/
+# Warning: Do *NOT* copy this line to overlay!
+:global GlobalConfigReady false;
+# || ... but
+# \||/ start
+# \/ here!
+
# Set this to 'true' to disable news and change notifications.
:global NoNewsAndChangesNotification false;
@@ -63,6 +69,12 @@
:global NtfyServerToken "";
:global NtfyTopic "";
+# You can send Gotify notifications. Configure these settings and
+# install the module:
+# $ScriptInstallUpdate mod/notification-gotify
+:global GotifyServer "";
+:global GotifyToken "";
+
# It is possible to override e-mail, Telegram, Matrix and Ntfy setting
# for every script. This is done in arrays, where 'Override' is appended
# to the variable name, like this:
@@ -258,14 +270,20 @@
"cert2-cn"="4n0th3r-s3cr3t";
};
+# /\ Warning: Do *NOT* copy
+# /\7\ the code below to overlay!
+# /_()_\ Things *will* break!
+#
# load custom settings from overlay and snippets
-# Warning: Do *NOT* copy this code to overlay!
:foreach Script in=([ /system/script/find where name="global-config-overlay" ], \
[ /system/script/find where name~"^global-config-overlay.d/" ]) do={
- :do {
+ :onerror Err {
/system/script/run $Script;
- } on-error={
+ } do={
:log error ("Loading configuration from overlay or snippet " . \
- [ /system/script/get $Script name ] . " failed!");
+ [ /system/script/get $Script name ] . " failed: " . $Err);
}
}
+
+# signal we are ready
+:set GlobalConfigReady true;