matrix-alertbot/tests/resources/config/config.full.yml

117 lines
3.8 KiB
YAML
Raw Normal View History

2022-07-09 12:22:05 +02:00
# Welcome to the sample config file
# Below you will find various config sections and options
# Default values are shown
# Options for connecting to the bot's Matrix account
matrix:
2024-01-22 11:35:13 +01:00
accounts:
- # The Matrix User ID of the bot account
id: "@fakes_user:matrix.example.com"
2022-10-26 13:25:47 +02:00
2024-01-22 11:35:13 +01:00
# Matrix account password (optional if access token used)
password: "password"
2022-10-26 13:25:47 +02:00
2024-01-22 11:35:13 +01:00
# Matrix account access token (optional if password used)
# If not set, the server will provide an access token after log in,
# which will be stored in the user token file (see below)
#token: ""
2022-10-26 13:25:47 +02:00
2024-01-22 11:35:13 +01:00
# Path to the file where to store the user access token
token_file: "fake_token.json"
2022-10-26 13:25:47 +02:00
2024-01-22 11:35:13 +01:00
# The URL of the homeserver to connect to
url: https://matrix.example.com
2022-10-26 13:25:47 +02:00
2024-01-22 11:35:13 +01:00
# The device ID that is **non pre-existing** device
# If this device ID already exists, messages will be dropped silently in encrypted rooms
# If not set the server will provide a device ID after log in. Note that this ID
# will change each time the bot reconnects.
device_id: ABCDEFGHIJ
- # The Matrix User ID of the bot account
id: "@other_user:matrix.domain.tld"
# Matrix account password (optional if access token used)
#password: "password"
# Matrix account access token (optional if password used)
# If not set, the server will provide an access token after log in,
# which will be stored in the user token file (see below)
token: "token"
# Path to the file where to store the user access token
token_file: "other_token.json"
# The URL of the homeserver to connect to
url: https://matrix.domain.tld
# The device ID that is **non pre-existing** device
# If this device ID already exists, messages will be dropped silently in encrypted rooms
# If not set the server will provide a device ID after log in. Note that this ID
# will change each time the bot reconnects.
device_id: KLMNOPQRST
2022-10-26 13:25:47 +02:00
2022-07-09 12:22:05 +02:00
# What to name the logged in device
device_name: fake_device_name
2022-10-26 13:25:47 +02:00
# List of rooms where the bot can interact
allowed_rooms:
- "!abcdefgh:matrix.example.com"
2022-10-26 13:25:47 +02:00
# List of allowed reactions to create silences.
allowed_reactions: [🤫, 😶, 🤐, 🤗]
insult_reactions: [🤗]
2022-07-09 12:22:05 +02:00
webhook:
2022-10-26 13:25:47 +02:00
# Path to the socket for which the bot should listen to.
# This is mutually exclusive with webhook.address option.
2022-07-09 12:22:05 +02:00
socket: matrix-alertbot.socket
alertmanager:
2022-10-26 13:25:47 +02:00
# Url to Alertmanager server
2022-07-09 12:22:05 +02:00
url: http://localhost:9093
dm:
filter_labels:
matrix: dm
select_label: uuid
room_title: Alerts for {user}
users:
- matrix_id: "@some_other_user1:example.com"
user_id:
- a7b37c33-574c-45ac-bb07-a3b314c2da54
- matrix_id: "@some_other_user2:example.com"
user_id:
- cfb32a1d-737a-4618-8ee9-09b254d98fee
- 27e73f9b-b40a-4d84-b5b5-225931f6c289
2022-07-09 12:22:05 +02:00
cache:
# The path to a directory for caching alerts and silences
path: "data/cache"
storage:
# The path to a directory for internal bot storage
# containing encryption keys, sync tokens, etc.
path: "data/store"
2022-07-28 17:39:47 +02:00
template:
2022-10-26 13:25:47 +02:00
# Path to directory that contains templates for rendering alerts.
# The directory must contains the files "alert.html.j2" and "alert.txt.j2"
# and must respect Jinja2 templating format.
2022-07-28 17:39:47 +02:00
path: "data/templates"
2022-07-09 12:22:05 +02:00
# Logging setup
logging:
# Configure logging to a file
file_logging:
# Whether logging to a file is enabled
enabled: true
# The path to the file to log to. May be relative or absolute
filepath: fake.log
2024-04-17 15:56:43 +02:00
# Logging level specific to file (optional)
# Allowed levels are 'INFO', 'WARNING', 'ERROR', 'DEBUG' where DEBUG is most verbose
2024-01-22 11:35:13 +01:00
level: INFO
2022-07-09 12:22:05 +02:00
# Configure logging to the console output
console_logging:
# Whether logging to the console is enabled
enabled: false