2018-10-14 15:08:11 -04:00
|
|
|
# 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
|
2018-09-23 10:56:21 -04:00
|
|
|
database: sqlite:///maubot.db
|
2018-06-13 18:41:05 -04:00
|
|
|
|
2018-10-21 18:57:29 -04:00
|
|
|
# The directory where plugin databases should be stored.
|
|
|
|
plugin_db_directory: ./plugins
|
|
|
|
|
2018-06-13 18:41:05 -04:00
|
|
|
# If multiple directories have a plugin with the same name, the first directory is used.
|
|
|
|
plugin_directories:
|
|
|
|
- ./plugins
|
|
|
|
|
|
|
|
server:
|
2018-10-16 09:41:02 -04:00
|
|
|
# The IP and port to listen to.
|
|
|
|
hostname: 0.0.0.0
|
|
|
|
port: 29316
|
2018-10-14 15:08:11 -04:00
|
|
|
# The base management API path.
|
2018-09-23 10:56:21 -04:00
|
|
|
base_path: /_matrix/maubot
|
2018-10-14 15:08:11 -04:00
|
|
|
# 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
|
2018-09-23 10:56:21 -04:00
|
|
|
|
2018-09-26 03:32:24 -04:00
|
|
|
admins:
|
|
|
|
- "@admin:example.com"
|
|
|
|
|
2018-09-23 10:56:21 -04:00
|
|
|
# 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
|
2018-09-26 03:32:24 -04:00
|
|
|
filename: ./logs/maubot.log
|
2018-09-23 10:56:21 -04:00
|
|
|
maxBytes: 10485760
|
|
|
|
backupCount: 10
|
|
|
|
console:
|
|
|
|
class: logging.StreamHandler
|
|
|
|
formatter: precise
|
|
|
|
loggers:
|
|
|
|
maubot:
|
|
|
|
level: DEBUG
|
2018-09-26 03:32:24 -04:00
|
|
|
mautrix:
|
|
|
|
level: DEBUG
|
2018-09-23 10:56:21 -04:00
|
|
|
aiohttp:
|
|
|
|
level: INFO
|
|
|
|
root:
|
|
|
|
level: DEBUG
|
2018-09-26 03:32:24 -04:00
|
|
|
handlers: [file, console]
|