mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
# The full URI to the database. SQLite and Postgres are fully supported.
|
|
# Other DBMSes supported by SQLAlchemy may or may not work.
|
|
# Format examples:
|
|
# SQLite: sqlite:///filename.db
|
|
# Postgres: postgres://username:password@hostname/dbname
|
|
database: sqlite:///maubot.db
|
|
|
|
# If multiple directories have a plugin with the same name, the first directory is used.
|
|
plugin_directories:
|
|
- ./plugins
|
|
|
|
server:
|
|
# The IP:port to listen to.
|
|
listen: 0.0.0.0:29316
|
|
# The base management API path.
|
|
base_path: /_matrix/maubot
|
|
# The base appservice API path. Use / for legacy appservice API and /_matrix/app/v1 for v1.
|
|
appservice_base_path: /_matrix/app/v1
|
|
# The shared secret to authorize users of the API.
|
|
# Set to "generate" to generate and save a new token at startup.
|
|
shared_secret: generate
|
|
|
|
admins:
|
|
- "@admin:example.com"
|
|
|
|
# Python logging configuration.
|
|
#
|
|
# See section 16.7.2 of the Python documentation for more info:
|
|
# https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
|
|
logging:
|
|
version: 1
|
|
formatters:
|
|
precise:
|
|
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
|
|
handlers:
|
|
file:
|
|
class: logging.handlers.RotatingFileHandler
|
|
formatter: precise
|
|
filename: ./logs/maubot.log
|
|
maxBytes: 10485760
|
|
backupCount: 10
|
|
console:
|
|
class: logging.StreamHandler
|
|
formatter: precise
|
|
loggers:
|
|
maubot:
|
|
level: DEBUG
|
|
mautrix:
|
|
level: DEBUG
|
|
aiohttp:
|
|
level: INFO
|
|
root:
|
|
level: DEBUG
|
|
handlers: [file, console]
|