From 8375673d93d5481cc575dcb61825eba9b08c1515 Mon Sep 17 00:00:00 2001 From: Michael Gisbers Date: Fri, 28 May 2021 17:30:37 +0200 Subject: global-functions: implement notifications via Matrix Matrix is an open network for secure, decentralized communication - and it has a web api. A warning on message type: Using 'm.notice' breaks rendering on Element for Android (no fixed width font) and does not pop up desktop notification. Thus we use 'm.text'. Should be safe as we do not send the messages in response to other messages. https://matrix.org/ --- global-config | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'global-config') diff --git a/global-config b/global-config index 6730a45..19d1215 100644 --- a/global-config +++ b/global-config @@ -8,7 +8,7 @@ # Make sure all configuration properties are up to date and this # value is in sync with value in script 'global-functions'! -:global GlobalConfigVersion 52; +:global GlobalConfigVersion 53; # This is used for DNS and backup file. :global Domain "example.com"; @@ -33,9 +33,19 @@ # This is whether or not to send Telegram messages with fixed-width font. :global TelegramFixedWidthFont true; -# It is possible to override e-mail and Telegram setting for every script. -# This is done in arrays EmailGeneralToOverride, EmailGeneralCcOverride, -# TelegramTokenIdOverride and TelegramChatIdOverride like this: +# You can send Matrix notifications. Configure these settings and +# install the module: +# $ScriptInstallUpdate global-functions.d/notification-matrix +:global MatrixHomeServer ""; +:global MatrixAccessToken ""; +:global MatrixRoom ""; +#:global MatrixHomeServer "matrix.org"; +#:global MatrixAccessToken "123456ABCDEFGHI..."; +#:global MatrixRoom "!example:matrix.org"; + +# It is possible to override e-mail, Telegram and Matrix setting for every +# script. This is done in arrays, where 'Override' is appended to the +# variable name, like this: #:global EmailGeneralToOverride { # "check-certificates"="override@example.com"; # "email-backup"="backup@example.com"; -- cgit v1.2.3-54-g00ecf