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.
 
 

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