Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

100 rader
3.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: postgres://username:password@hostname/dbname
  6. database: {{ matrix_maubot_database_url }}
  7. plugin_directories:
  8. # The directory where uploaded new plugins should be stored.
  9. upload: {{ matrix_maubot_container_data_dir }}/plugins
  10. # The directories from which plugins should be loaded.
  11. # Duplicate plugin IDs will be moved to the trash.
  12. load:
  13. - {{ matrix_maubot_container_data_dir }}/plugins
  14. # The directory where old plugin versions and conflicting plugins should be moved.
  15. # Set to "delete" to delete files immediately.
  16. trash: {{ matrix_maubot_container_data_dir }}/trash
  17. # The directory where plugin databases should be stored.
  18. db: {{ matrix_maubot_container_data_dir }}/plugins
  19. server:
  20. # The IP and port to listen to.
  21. hostname: {{ matrix_maubot_management_hostname }}
  22. port: {{ matrix_maubot_management_port }}
  23. # The base management API path.
  24. base_path: /_matrix/maubot/v1
  25. # The base path for the UI.
  26. ui_base_path: /_matrix/maubot
  27. # Override path from where to load UI resources.
  28. # Set to false to using pkg_resources to find the path.
  29. override_resource_path: /opt/maubot/frontend
  30. # The base appservice API path. Use / for legacy appservice API and /_matrix/app/v1 for v1.
  31. appservice_base_path: /_matrix/app/v1
  32. # The shared secret to sign API access tokens.
  33. # Set to "generate" to generate and save a new token at startup.
  34. unshared_secret: generate
  35. {% if maubot_shared_secret %}
  36. # Shared registration secrets to allow registering new users from the management UI
  37. registration_secrets:
  38. {{ matrix_domain }}:
  39. # Client-server API URL
  40. url: {{ matrix_maubot_cs_url }}
  41. # registration_shared_secret from synapse config
  42. secret: {{ matrix_maubot_registration_shared_secret }}
  43. {% endif %}
  44. # List of administrator users. Plaintext passwords will be bcrypted on startup. Set empty password
  45. # to prevent normal login. Root is a special user that can't have a password and will always exist.
  46. admins:
  47. root: ""
  48. {% if matrix_maubot_admins %}
  49. {% for user, password in matrix_maubot_admins %}
  50. {{ user }}: '{{ password }}'
  51. {% endfor %}
  52. {% endif %}
  53. # API feature switches.
  54. api_features:
  55. login: true
  56. plugin: true
  57. plugin_upload: true
  58. instance: true
  59. instance_database: true
  60. client: true
  61. client_proxy: true
  62. client_auth: true
  63. dev_open: true
  64. log: true
  65. # Python logging configuration.
  66. #
  67. # See section 16.7.2 of the Python documentation for more info:
  68. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  69. logging:
  70. version: 1
  71. formatters:
  72. precise:
  73. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  74. handlers:
  75. file:
  76. class: logging.handlers.RotatingFileHandler
  77. formatter: precise
  78. filename: /var/log/maubot.log
  79. maxBytes: 10485760
  80. backupCount: 10
  81. console:
  82. class: logging.StreamHandler
  83. formatter: precise
  84. loggers:
  85. maubot:
  86. level: DEBUG
  87. mautrix:
  88. level: DEBUG
  89. aiohttp:
  90. level: INFO
  91. root:
  92. level: DEBUG
  93. handlers: [file, console]