From eaee4c4e17bdbaa7b643196a6cc53e2f94c289c7 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 19 Jun 2020 01:32:13 +0200 Subject: [PATCH] [management] Base mm-management stuff --- management/.gitignore | 1 + management/README.txt | 1 + management/config.py.example | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 management/.gitignore create mode 100644 management/README.txt create mode 100644 management/config.py.example diff --git a/management/.gitignore b/management/.gitignore new file mode 100644 index 0000000..4acd06b --- /dev/null +++ b/management/.gitignore @@ -0,0 +1 @@ +config.py diff --git a/management/README.txt b/management/README.txt new file mode 100644 index 0000000..e8f32b2 --- /dev/null +++ b/management/README.txt @@ -0,0 +1 @@ +Stuff that needs MM-System permissions. diff --git a/management/config.py.example b/management/config.py.example new file mode 100644 index 0000000..7c77d7c --- /dev/null +++ b/management/config.py.example @@ -0,0 +1,25 @@ +# +# Someone's Mattermost scripts. +# published under MIT-License +# written 2016-2020 by Someone (aka. Jan Vales ) +# +# Config file. +# mv to config.py.examle config.py + edit. +# +# consider running as cronjob +# 0 * * * * (cd /home/someone/mattermost/management; python3 -u account_handling.py) +# + +# sysadmin-bot +mm_api_url = "http://localhost:8065/api" +mm_user = "..." +mm_user_pw = "..." + +# The allowed email addresses for user accounts. +allowed_emails_regex = r".*@(.*tld|tld2|tld3)$" + +# The team-ids guests are joined/confined into. +guest_team_ids = {"..."} + +# The channel-ids guests are joined/confined into. +guest_channels = {"..."} -- 2.43.0