Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

120 satır
4.7 KiB

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