Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

156 строки
9.8 KiB

  1. ---
  2. # A moderation tool for Matrix
  3. # Project source code URL: https://github.com/the-draupnir-project/Draupnir
  4. matrix_bot_draupnir_enabled: true
  5. # renovate: datasource=docker depName=gnuxie/draupnir
  6. matrix_bot_draupnir_version: "v2.0.1"
  7. matrix_bot_draupnir_container_image_self_build: false
  8. matrix_bot_draupnir_container_image_self_build_repo: "https://github.com/the-draupnir-project/Draupnir.git"
  9. matrix_bot_draupnir_docker_image: "{{ matrix_bot_draupnir_docker_image_name_prefix }}gnuxie/draupnir:{{ matrix_bot_draupnir_version }}"
  10. matrix_bot_draupnir_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_draupnir_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. matrix_bot_draupnir_docker_image_force_pull: "{{ matrix_bot_draupnir_docker_image.endswith(':latest') }}"
  12. matrix_bot_draupnir_base_path: "{{ matrix_base_data_path }}/draupnir"
  13. matrix_bot_draupnir_config_path: "{{ matrix_bot_draupnir_base_path }}/config"
  14. matrix_bot_draupnir_data_path: "{{ matrix_bot_draupnir_base_path }}/data"
  15. matrix_bot_draupnir_docker_src_files_path: "{{ matrix_bot_draupnir_base_path }}/docker-src"
  16. matrix_bot_draupnir_abuse_reporting_enabled: false
  17. matrix_bot_draupnir_web_enabled: "{{ matrix_bot_draupnir_abuse_reporting_enabled }}"
  18. matrix_bot_draupnir_display_reports: "{{ matrix_bot_draupnir_abuse_reporting_enabled }}"
  19. matrix_bot_draupnir_container_network: ""
  20. matrix_bot_draupnir_container_additional_networks: "{{ matrix_bot_draupnir_container_additional_networks_auto + matrix_bot_draupnir_container_additional_networks_custom }}"
  21. matrix_bot_draupnir_container_additional_networks_auto: []
  22. matrix_bot_draupnir_container_additional_networks_custom: []
  23. # Controls whether the matrix-bot-draupnir container exposes its HTTP port (tcp/80 in the container).
  24. #
  25. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8766"), or empty string to not expose.
  26. matrix_bot_draupnir_container_http_host_bind_port: ''
  27. # A list of extra arguments to pass to the container
  28. matrix_bot_draupnir_container_extra_arguments: []
  29. # List of systemd services that matrix-bot-draupnir.service depends on
  30. matrix_bot_draupnir_systemd_required_services_list: "{{ matrix_bot_draupnir_systemd_required_services_list_default + matrix_bot_draupnir_systemd_required_services_list_auto + matrix_bot_draupnir_systemd_required_services_list_custom }}"
  31. matrix_bot_draupnir_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  32. matrix_bot_draupnir_systemd_required_services_list_auto: []
  33. matrix_bot_draupnir_systemd_required_services_list_custom: []
  34. # List of systemd services that matrix-bot-draupnir.service wants
  35. matrix_bot_draupnir_systemd_wanted_services_list: []
  36. # Whether Draupnir should talk to the homeserver through Pantalaimon
  37. # If true, then other variables must be provided including pointing
  38. # `matrix_bot_draupnir_homeserver_url` to the Pantalaimon URL.
  39. # Enabling this option is discouraged, because Draupnir does not support
  40. # running with Pantalaimon as it would break all workflows that involve answering
  41. # prompts with reactions. (Hint: a lot of workflows rely on them.)
  42. matrix_bot_draupnir_pantalaimon_use: false
  43. # If you choose to accept the risks of using Pantalaimon in your installation
  44. # against the upstream advice, you can enable this to disable the warning about it.
  45. matrix_bot_draupnir_pantalaimon_breakage_ignore: false
  46. # Tells the bot if it should use its native E2EE support in the form of experimental Rust Crypto in the bot SDK.
  47. # This option is mutually exclusive with `matrix_bot_draupnir_pantalaimon_use`.
  48. # Rust Crypto requires a clean access token that has not touched E2EE so curl is recommended as a method to obtain it.
  49. matrix_bot_draupnir_enable_experimental_rust_crypto: false
  50. # The access token for the bot user. Required when NOT using Pantalaimon.
  51. # (Otherwise provide `matrix_bot_draupnir_pantalaimon_username` and `matrix_bot_draupnir_pantalaimon_password` instead.)
  52. matrix_bot_draupnir_access_token: ""
  53. # User name and password for the bot. Required when using Pantalaimon.
  54. # (Otherwise provide `matrix_bot_draupnir_access_token` instead.)
  55. matrix_bot_draupnir_pantalaimon_username: ""
  56. matrix_bot_draupnir_pantalaimon_password: ""
  57. # Username and password the bot uses for logging in directly. If using Pantalimon
  58. # these values become the values of `matrix_bot_draupnir_pantalaimon_username` and `matrix_bot_draupnir_pantalaimon_password`
  59. matrix_bot_draupnir_login: "{{ matrix_bot_draupnir_pantalaimon_username if matrix_bot_draupnir_pantalaimon_use == 'true' else 'bot.draupnir' }}"
  60. matrix_bot_draupnir_password: "{{ matrix_bot_draupnir_pantalaimon_password }}"
  61. # Controls if we activate the Pantalaimon config block for now. This configuration block's name will probably be changed for our usecase
  62. # due to a Draupnir push to scrub Pantalaimon from the codebase.
  63. matrix_bot_draupnir_login_native: ""
  64. # The room ID where people can use the bot. The bot has no access controls, so
  65. # anyone in this room can use the bot - secure your room!
  66. # This should be a room alias or room ID - not a matrix.to URL.
  67. # Note: Draupnir is fairly verbose - expect a lot of messages from it.
  68. matrix_bot_draupnir_management_room: ""
  69. # Endpoint URL that Draupnir uses to interact with the Matrix homeserver (client-server API).
  70. # Set this to the Pantalaimon URL if you're using that.
  71. matrix_bot_draupnir_homeserver_url: ""
  72. # Endpoint URL that Draupnir could use to fetch events related to reports (client-server API and /_synapse/),
  73. # only set this to the public-internet homeserver client API URL. Do NOT set this to the Pantalaimon URL.
  74. matrix_bot_draupnir_raw_homeserver_url: ""
  75. # Disable Server ACL is used if you want to not give the bot the right to apply Server ACLs in rooms without complaints from the bot.
  76. # This setting is described the following way in the Configuration.
  77. #
  78. # Whether or not Draupnir should apply `m.room.server_acl` events.
  79. # DO NOT change this to `true` unless you are very confident that you know what you are doing.
  80. #
  81. # Please follow the advice of upstream and only change this value if you know what your doing.
  82. # Its Exposed here because its common enough to be valid to expose.
  83. matrix_bot_draupnir_disable_server_acl: "false"
  84. # Controls if the room state backing store is activated.
  85. # Room state backing store makes restarts of the bot lightning fast as the bot does not suffer from amnesia.
  86. # This config option has diminished improvements for bots on extremely fast homeservers or very very small bots on fast homeservers.
  87. matrix_bot_draupnir_enable_room_state_backing_store: "true"
  88. # Default configuration template which covers the generic use case.
  89. # You can customize it by controlling the various variables inside it.
  90. #
  91. # For a more advanced customization, you can extend the default (see `matrix_bot_draupnir_configuration_extension_yaml`)
  92. # or completely replace this variable with your own template.
  93. matrix_bot_draupnir_configuration_yaml: "{{ lookup('template', 'templates/production.yaml.j2') }}"
  94. matrix_bot_draupnir_configuration_extension_yaml: |
  95. # Your custom YAML configuration goes here.
  96. # This configuration extends the default starting configuration (`matrix_bot_draupnir_configuration_yaml`).
  97. #
  98. # You can override individual variables from the default configuration, or introduce new ones.
  99. #
  100. # If you need something more special, you can take full control by
  101. # completely redefining `matrix_bot_draupnir_configuration_yaml`.
  102. matrix_bot_draupnir_configuration_extension: "{{ matrix_bot_draupnir_configuration_extension_yaml | from_yaml if matrix_bot_draupnir_configuration_extension_yaml | from_yaml is mapping else {} }}"
  103. # Holds the final configuration (a combination of the default and its extension).
  104. # You most likely don't need to touch this variable. Instead, see `matrix_bot_draupnir_configuration_yaml`.
  105. matrix_bot_draupnir_configuration: "{{ matrix_bot_draupnir_configuration_yaml | from_yaml | combine(matrix_bot_draupnir_configuration_extension, recursive=True) }}"
  106. # Controls whether labels will be added that redirect the /_matrix/client/../rooms/../report paths to Draupnir
  107. # Following these recommendations (https://github.com/element-hq/synapse/blob/master/docs/reverse_proxy.md), by default, we don't.
  108. # Regardless of whether this is enabled, it may or may not take effect due to the value of other variables.
  109. # See `matrix_synapse_container_labels_traefik_enabled` or `matrix_synapse_container_labels_matrix_related_labels_enabled`
  110. matrix_bot_draupnir_container_labels_traefik_enabled: false
  111. matrix_bot_draupnir_container_labels_traefik_docker_network: "{{ matrix_draupnir_bot_container_network }}"
  112. matrix_bot_draupnir_container_labels_traefik_hostname: "{{ matrix_synapse_container_labels_traefik_hostname }}"
  113. matrix_bot_draupnir_container_labels_traefik_path_regexp: "^/_matrix/client/(r0|v3)/rooms/([^/]*)/report/"
  114. matrix_bot_draupnir_container_labels_traefik_rule: "Host(`{{ matrix_bot_draupnir_container_labels_traefik_hostname }}`) && PathRegexp(`{{ matrix_bot_draupnir_container_labels_traefik_path_regexp }}`)"
  115. matrix_bot_draupnir_container_labels_traefik_priority: 0
  116. matrix_bot_draupnir_container_labels_traefik_entrypoints: "{{ matrix_synapse_container_labels_traefik_entrypoints }}"
  117. matrix_bot_draupnir_container_labels_traefik_tls: "{{ matrix_bot_draupnir_container_labels_traefik_entrypoints != 'web' }}"
  118. matrix_bot_draupnir_container_labels_traefik_tls_certResolver: "{{ matrix_synapse_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  119. # matrix_bot_draupnir_container_labels_traefik_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  120. # See `../templates/labels.j2` for details.
  121. #
  122. # Example:
  123. # matrix_bot_draupnir_container_labels_traefik_labels_additional_labels: |
  124. # my.label=1
  125. # another.label="here"
  126. matrix_bot_draupnir_container_labels_traefik_labels_additional_labels: ''