Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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