]> git.somenet.org - pub/jan/mattermost-privileged.git/blob - maintenance/config.py.example
maintenance/fs.py
[pub/jan/mattermost-privileged.git] / maintenance / config.py.example
1 #
2 # Someone's Mattermost maintenance scripts.
3 #   Copyright (c) 2016-2024 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
4 #   published under MIT-License
5 #
6 # Config file.
7 #   mv to config.py.examle config.py + edit.
8 #
9 # consider running as cronjob
10 #   55 23 * * *  (cd /home/someone/mattermost/priviledged/maintenance; python3 -Bu db.py |tee /tmp/maintenance_db.log; python3 -Bu fs.py echo ""; du -sch /srv/mattermost/data/* | tail)
11 #
12
13 # Mattermost Postgres-DB-Connect string.
14 # Needed priviledges: all.
15 dbconnstring = "host=... dbname=... user=... password=..."
16
17 # user-id of "@deleted_user" to map posts of deleted users to.
18 deleted_user_uid = 'dead0012345678901234567890'
19
20 # Path to data-directory.
21 fs_data_path = "/srv/mattermost/..."
22
23 # Rollback instead of committing at the end. Also dont remove any files or directories.
24 dry_run = True
25
26 # OPTIONAL: delete ``AUTODELETE-*`` messages.
27 #softdel_autodelete = True
28
29 # OPTIONAL: soft-delete system messages.
30 #softdel_systemspam = True
31
32 # OPTIONAL: Enforce system policy? (likely only relevant vor mattermost.fsinf.at)
33 #enforce_system_policy = False