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.
 
 
 

102 regels
3.8 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: postgres://username:password@hostname/dbname
  6. database: {{ matrix_bot_maubot_storage_database|to_json }}
  7. # Database for encryption data.
  8. crypto_database:
  9. # Type of database. Either "default", "pickle" or "postgres".
  10. # When set to default, using SQLite as the main database will use pickle as the crypto database
  11. # and using Postgres as the main database will use the same one as the crypto database.
  12. #
  13. # When using pickle, individual crypto databases are stored in the pickle_dir directory.
  14. # When using non-default postgres, postgres_uri is used to connect to postgres.
  15. #
  16. # WARNING: The pickle database is dangerous and should not be used in production.
  17. type: default
  18. postgres_uri: {{ matrix_bot_maubot_storage_database|to_json }}
  19. pickle_dir: {{ matrix_bot_maubot_container_data_dir }}/crypto
  20. plugin_directories:
  21. # The directory where uploaded new plugins should be stored.
  22. upload: {{ matrix_bot_maubot_container_data_dir }}/plugins
  23. # The directories from which plugins should be loaded.
  24. # Duplicate plugin IDs will be moved to the trash.
  25. load:
  26. - {{ matrix_bot_maubot_container_data_dir }}/plugins
  27. # The directory where old plugin versions and conflicting plugins should be moved.
  28. # Set to "delete" to delete files immediately.
  29. trash: {{ matrix_bot_maubot_container_data_dir }}/trash
  30. # The directory where plugin databases should be stored.
  31. db: {{ matrix_bot_maubot_container_data_dir }}/plugins
  32. server:
  33. # The IP and port to listen to.
  34. hostname: {{ matrix_bot_maubot_management_hostname }}
  35. port: {{ matrix_bot_maubot_management_port }}
  36. # The base management API path.
  37. base_path: /_matrix/maubot/v1
  38. # The base path for the UI.
  39. ui_base_path: /_matrix/maubot
  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: generate
  48. {% if matrix_bot_maubot_shared_secret %}
  49. # Shared registration secrets to allow registering new users from the management UI
  50. registration_secrets:
  51. {{ matrix_domain }}:
  52. # Client-server API URL
  53. url: {{ matrix_bot_maubot_cs_url }}
  54. # registration_shared_secret from synapse config
  55. secret: {{ matrix_bot_maubot_registration_shared_secret }}
  56. {% endif %}
  57. # List of administrator users. Plaintext passwords will be bcrypted on startup. Set empty password
  58. # to prevent normal login. Root is a special user that can't have a password and will always exist.
  59. admins: {{ matrix_bot_maubot_admins | combine( {"root": ""} ) }}
  60. # API feature switches.
  61. api_features:
  62. login: true
  63. plugin: true
  64. plugin_upload: true
  65. instance: true
  66. instance_database: true
  67. client: true
  68. client_proxy: true
  69. client_auth: true
  70. dev_open: true
  71. log: true
  72. # Python logging configuration.
  73. #
  74. # See section 16.7.2 of the Python documentation for more info:
  75. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  76. logging:
  77. version: 1
  78. formatters:
  79. precise:
  80. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  81. handlers:
  82. console:
  83. class: logging.StreamHandler
  84. formatter: precise
  85. loggers:
  86. maubot:
  87. level: DEBUG
  88. mautrix:
  89. level: DEBUG
  90. aiohttp:
  91. level: INFO
  92. root:
  93. level: DEBUG
  94. handlers: [console]