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
|
2020-07-12 07:55:41 -04:00
|
|
|
|
|
|
|
# Database for encryption data.
|
|
|
|
crypto_database:
|
|
|
|
# Type of database. Either "default", "pickle" or "postgres".
|
|
|
|
# When set to default, using SQLite as the main database will use pickle as the crypto database
|
|
|
|
# and using Postgres as the main database will use the same one as the crypto database.
|
|
|
|
#
|
|
|
|
# When using pickle, individual crypto databases are stored in the pickle_dir directory.
|
|
|
|
# When using non-default postgres, postgres_uri is used to connect to postgres.
|
2021-05-02 12:07:48 -04:00
|
|
|
#
|
|
|
|
# WARNING: The pickle database is dangerous and should not be used in production.
|
2020-07-12 07:55:41 -04:00
|
|
|
type: default
|
|
|
|
postgres_uri: postgres://username:password@hostname/dbname
|
|
|
|
pickle_dir: ./crypto
|
2018-06-13 18:41:05 -04:00
|
|
|
|
|
|
|
plugin_directories:
|
2018-10-27 18:31:03 -04:00
|
|
|
# The directory where uploaded new plugins should be stored.
|
|
|
|
upload: ./plugins
|
|
|
|
# The directories from which plugins should be loaded.
|
|
|
|
# Duplicate plugin IDs will be moved to the trash.
|
|
|
|
load:
|
|
|
|
- ./plugins
|
|
|
|
# The directory where old plugin versions and conflicting plugins should be moved.
|
|
|
|
# Set to "delete" to delete files immediately.
|
|
|
|
trash: ./trash
|
|
|
|
# The directory where plugin databases should be stored.
|
|
|
|
db: ./plugins
|
2018-06-13 18:41:05 -04:00
|
|
|
|
|
|
|
server:
|
2018-10-16 09:41:02 -04:00
|
|
|
# The IP and port to listen to.
|
|
|
|
hostname: 0.0.0.0
|
|
|
|
port: 29316
|
2019-03-06 15:35:51 -05:00
|
|
|
# Public base URL where the server is visible.
|
|
|
|
public_url: https://example.com
|
2018-10-14 15:08:11 -04:00
|
|
|
# The base management API path.
|
2018-10-27 18:31:03 -04:00
|
|
|
base_path: /_matrix/maubot/v1
|
2018-11-10 17:43:58 -05:00
|
|
|
# The base path for the UI.
|
|
|
|
ui_base_path: /_matrix/maubot
|
2019-03-06 16:16:22 -05:00
|
|
|
# The base path for plugin endpoints. The instance ID will be appended directly.
|
|
|
|
plugin_base_path: /_matrix/maubot/plugin/
|
2018-11-10 17:43:58 -05:00
|
|
|
# Override path from where to load UI resources.
|
|
|
|
# Set to false to using pkg_resources to find the path.
|
|
|
|
override_resource_path: false
|
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
|
2018-10-27 18:31:03 -04:00
|
|
|
# The shared secret to sign API access tokens.
|
2018-10-14 15:08:11 -04:00
|
|
|
# Set to "generate" to generate and save a new token at startup.
|
2018-10-27 18:31:03 -04:00
|
|
|
unshared_secret: generate
|
2018-09-23 10:56:21 -04:00
|
|
|
|
2018-12-07 18:13:40 -05:00
|
|
|
# Shared registration secrets to allow registering new users from the management UI
|
|
|
|
registration_secrets:
|
|
|
|
example.com:
|
|
|
|
# Client-server API URL
|
|
|
|
url: https://example.com
|
|
|
|
# registration_shared_secret from synapse config
|
|
|
|
secret: synapse_shared_registration_secret
|
|
|
|
|
2018-10-30 20:03:27 -04:00
|
|
|
# List of administrator users. Plaintext passwords will be bcrypted on startup. Set empty password
|
|
|
|
# to prevent normal login. Root is a special user that can't have a password and will always exist.
|
2018-09-26 03:32:24 -04:00
|
|
|
admins:
|
2018-10-30 20:03:27 -04:00
|
|
|
root: ""
|
2018-09-26 03:32:24 -04:00
|
|
|
|
2018-12-30 12:16:30 -05:00
|
|
|
# API feature switches.
|
|
|
|
api_features:
|
|
|
|
login: true
|
|
|
|
plugin: true
|
|
|
|
plugin_upload: true
|
|
|
|
instance: true
|
|
|
|
instance_database: true
|
|
|
|
client: true
|
|
|
|
client_proxy: true
|
|
|
|
client_auth: true
|
|
|
|
dev_open: true
|
|
|
|
log: true
|
|
|
|
|
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:
|
2019-09-01 07:46:08 -04:00
|
|
|
colored:
|
|
|
|
(): maubot.lib.color_log.ColorFormatter
|
|
|
|
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
|
|
|
|
normal:
|
2018-09-23 10:56:21 -04:00
|
|
|
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
|
|
|
|
handlers:
|
|
|
|
file:
|
|
|
|
class: logging.handlers.RotatingFileHandler
|
2019-09-01 07:46:08 -04:00
|
|
|
formatter: normal
|
|
|
|
filename: ./maubot.log
|
2018-09-23 10:56:21 -04:00
|
|
|
maxBytes: 10485760
|
|
|
|
backupCount: 10
|
|
|
|
console:
|
|
|
|
class: logging.StreamHandler
|
2019-09-01 07:46:08 -04:00
|
|
|
formatter: colored
|
2018-09-23 10:56:21 -04:00
|
|
|
loggers:
|
|
|
|
maubot:
|
|
|
|
level: DEBUG
|
2021-07-06 05:16:38 -04:00
|
|
|
mau:
|
2018-09-26 03:32:24 -04:00
|
|
|
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]
|