Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

124 wiersze
4.9 KiB

  1. # The full URI to the database. SQLite and Postgres are fully supported.
  2. # Other DBMSes supported by SQLAlchemy may or may not work.
  3. # Format examples:
  4. # SQLite: sqlite:///filename.db
  5. # Postgres: postgresql://username:password@hostname/dbname
  6. database: sqlite:////data/maubot.db
  7. # Separate database URL for the crypto database. "default" means use the same database as above.
  8. crypto_database: default
  9. # Additional arguments for asyncpg.create_pool() or sqlite3.connect()
  10. # https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
  11. # https://docs.python.org/3/library/sqlite3.html#sqlite3.connect
  12. # For sqlite, min_size is used as the connection thread pool size and max_size is ignored.
  13. database_opts:
  14. min_size: 1
  15. max_size: 10
  16. plugin_directories:
  17. # The directory where uploaded new plugins should be stored.
  18. upload: /data/plugins
  19. # The directories from which plugins should be loaded.
  20. # Duplicate plugin IDs will be moved to the trash.
  21. load:
  22. - /data/plugins
  23. trash: /data/trash
  24. # Configuration for storing plugin databases
  25. plugin_databases:
  26. # The directory where SQLite plugin databases should be stored.
  27. sqlite: /data/dbs
  28. # The connection URL for plugin databases. If null, all plugins will get SQLite databases.
  29. # If set, plugins using the new asyncpg interface will get a Postgres connection instead.
  30. # Plugins using the legacy SQLAlchemy interface will always get a SQLite connection.
  31. #
  32. # To use the same connection pool as the default database, set to "default"
  33. # (the default database above must be postgres to do this).
  34. #
  35. # When enabled, maubot will create separate Postgres schemas in the database for each plugin.
  36. # To view schemas in psql, use `\dn`. To view enter and interact with a specific schema,
  37. # use `SET search_path = name` (where `name` is the name found with `\dn`) and then use normal
  38. # SQL queries/psql commands.
  39. postgres:
  40. # Maximum number of connections per plugin instance.
  41. postgres_max_conns_per_plugin: 3
  42. # Overrides for the default database_opts when using a non-"default" postgres connection string.
  43. postgres_opts: {}
  44. server:
  45. # The IP and port to listen to.
  46. hostname: 0.0.0.0
  47. port: 29316
  48. # Public base URL where the server is visible.
  49. public_url: {{ matrix_bot_maubot_bot_server }}
  50. # The base management API path.
  51. base_path: /_matrix/maubot/v1
  52. # The base path for the UI.
  53. ui_base_path: /_matrix/maubot
  54. # The base path for plugin endpoints. The instance ID will be appended directly.
  55. plugin_base_path: /_matrix/maubot/plugin/
  56. # Override path from where to load UI resources.
  57. # Set to false to using pkg_resources to find the path.
  58. override_resource_path: /opt/maubot/frontend
  59. # The base appservice API path. Use / for legacy appservice API and /_matrix/app/v1 for v1.
  60. appservice_base_path: /_matrix/app/v1
  61. # The shared secret to sign API access tokens.
  62. # Set to "generate" to generate and save a new token at startup.
  63. unshared_secret: {{ matrix_bot_maubot_secret }}
  64. # Known homeservers. This is required for the `mbc auth` command and also allows
  65. # more convenient access from the management UI. This is not required to create
  66. # clients in the management UI, since you can also just type the homeserver URL
  67. # into the box there.
  68. homeservers:
  69. {{ matrix_domain }}:
  70. # Client-server API URL
  71. url: {{ matrix_bot_maubot_bot_server }}
  72. # registration_shared_secret from synapse config
  73. # You can leave this empty if you don't have access to the homeserver.
  74. # When this is empty, `mbc auth --register` won't work, but `mbc auth` (login) will.
  75. secret: {{ matrix_bot_maubot_registration_shared_secret|to_json }}
  76. # List of administrator users. Plaintext passwords will be bcrypted on startup. Set empty password
  77. # to prevent normal login. Root is a special user that can't have a password and will always exist.
  78. admins: {{ matrix_bot_maubot_admins | combine( {"root": ""} ) }}
  79. api_features:
  80. login: true
  81. plugin: true
  82. plugin_upload: true
  83. instance: true
  84. instance_database: true
  85. client: true
  86. client_proxy: true
  87. client_auth: true
  88. dev_open: true
  89. log: true
  90. # Python logging configuration.
  91. #
  92. # See section 16.7.2 of the Python documentation for more info:
  93. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  94. logging:
  95. version: 1
  96. formatters:
  97. colored:
  98. (): maubot.lib.color_log.ColorFormatter
  99. format: '[%(asctime)s] [%(levelname)s@%(name)s] %(message)s'
  100. normal:
  101. format: '[%(asctime)s] [%(levelname)s@%(name)s] %(message)s'
  102. handlers:
  103. console:
  104. class: logging.StreamHandler
  105. formatter: colored
  106. loggers:
  107. maubot:
  108. level: DEBUG
  109. mau:
  110. level: DEBUG
  111. aiohttp:
  112. level: INFO
  113. root:
  114. level: DEBUG
  115. handlers: [console]