Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

116 righe
4.4 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 path for the UI.
  45. ui_base_path: {{ matrix_bot_maubot_bot_server_ui_base_path | to_json }}
  46. # The base path for plugin endpoints. The instance ID will be appended directly.
  47. plugin_base_path: {{ matrix_bot_maubot_bot_server_plugin_base_path | to_json }}
  48. # Override path from where to load UI resources.
  49. # Set to false to using pkg_resources to find the path.
  50. override_resource_path: /opt/maubot/frontend
  51. # The shared secret to sign API access tokens.
  52. # Set to "generate" to generate and save a new token at startup.
  53. unshared_secret: {{ matrix_bot_maubot_unshared_secret | to_json }}
  54. # Known homeservers. This is required for the `mbc auth` command and also allows
  55. # more convenient access from the management UI. This is not required to create
  56. # clients in the management UI, since you can also just type the homeserver URL
  57. # into the box there.
  58. homeservers:
  59. {{ matrix_bot_maubot_homeserver_name }}:
  60. # Client-server API URL
  61. url: {{ matrix_bot_maubot_homeserver_url | to_json }}
  62. # registration_shared_secret from synapse config
  63. # You can leave this empty if you don't have access to the homeserver.
  64. # When this is empty, `mbc auth --register` won't work, but `mbc auth` (login) will.
  65. secret: {{ matrix_bot_maubot_homeserver_secret | to_json }}
  66. # List of administrator users. Plaintext passwords will be bcrypted on startup. Set empty password
  67. # to prevent normal login. Root is a special user that can't have a password and will always exist.
  68. admins: {{ matrix_bot_maubot_admins | combine( {"root": ""} )|to_json }}
  69. api_features:
  70. login: true
  71. plugin: true
  72. plugin_upload: true
  73. instance: true
  74. instance_database: true
  75. client: true
  76. client_proxy: true
  77. client_auth: true
  78. dev_open: true
  79. log: true
  80. # Python logging configuration.
  81. #
  82. # See section 16.7.2 of the Python documentation for more info:
  83. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  84. logging:
  85. version: 1
  86. formatters:
  87. colored:
  88. (): maubot.lib.color_log.ColorFormatter
  89. format: '[%(asctime)s] [%(levelname)s@%(name)s] %(message)s'
  90. normal:
  91. format: '[%(asctime)s] [%(levelname)s@%(name)s] %(message)s'
  92. handlers:
  93. console:
  94. class: logging.StreamHandler
  95. formatter: colored
  96. loggers:
  97. maubot:
  98. level: {{ matrix_bot_maubot_logging_level|to_json }}
  99. mau:
  100. level: {{ matrix_bot_maubot_logging_level|to_json }}
  101. aiohttp:
  102. level: {{ matrix_bot_maubot_logging_level|to_json }}
  103. root:
  104. level: {{ matrix_bot_maubot_logging_level|to_json }}
  105. handlers: [console]