Matrix Docker Ansible eploy
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

184 linhas
7.0 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # postmoogle is an email to Matrix bridge using its bot user
  6. # Project source code URL: https://github.com/etkecc/postmoogle
  7. matrix_postmoogle_enabled: true
  8. matrix_postmoogle_container_image_self_build: false
  9. matrix_postmoogle_docker_repo: "https://github.com/etkecc/postmoogle.git"
  10. matrix_postmoogle_docker_repo_version: "{{ 'main' if matrix_postmoogle_version == 'latest' else matrix_postmoogle_version }}"
  11. matrix_postmoogle_docker_src_files_path: "{{ matrix_base_data_path }}/postmoogle/docker-src"
  12. # renovate: datasource=docker depName=ghcr.io/etkecc/postmoogle
  13. matrix_postmoogle_version: v0.9.24
  14. matrix_postmoogle_docker_image: "{{ matrix_postmoogle_docker_image_name_prefix }}etkecc/postmoogle:{{ matrix_postmoogle_version }}"
  15. matrix_postmoogle_docker_image_name_prefix: "{{ 'localhost/' if matrix_postmoogle_container_image_self_build else 'ghcr.io/' }}"
  16. matrix_postmoogle_docker_image_force_pull: "{{ matrix_postmoogle_docker_image.endswith(':latest') }}"
  17. matrix_postmoogle_base_path: "{{ matrix_base_data_path }}/postmoogle"
  18. matrix_postmoogle_config_path: "{{ matrix_postmoogle_base_path }}/config"
  19. matrix_postmoogle_data_path: "{{ matrix_postmoogle_base_path }}/data"
  20. matrix_postmoogle_container_network: ""
  21. matrix_postmoogle_container_additional_networks: "{{ matrix_postmoogle_container_additional_networks_auto + matrix_postmoogle_container_additional_networks_custom }}"
  22. matrix_postmoogle_container_additional_networks_auto: []
  23. matrix_postmoogle_container_additional_networks_custom: []
  24. # A list of extra arguments to pass to the container
  25. matrix_postmoogle_container_extra_arguments: []
  26. # List of systemd services that matrix-postmoogle.service depends on
  27. matrix_postmoogle_systemd_required_services_list: "{{ matrix_postmoogle_systemd_required_services_list_default + matrix_postmoogle_systemd_required_services_list_auto + matrix_postmoogle_systemd_required_services_list_custom }}"
  28. matrix_postmoogle_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  29. matrix_postmoogle_systemd_required_services_list_auto: []
  30. matrix_postmoogle_systemd_required_services_list_custom: []
  31. # List of systemd services that matrix-postmoogle.service wants
  32. matrix_postmoogle_systemd_wanted_services_list: []
  33. # Database-related configuration fields.
  34. #
  35. # To use SQLite, stick to these defaults.
  36. #
  37. # To use Postgres:
  38. # - change the engine (`matrix_postmoogle_database_engine: 'postgres'`)
  39. # - adjust your database credentials via the `matrix_postmoogle_database_*` variables
  40. matrix_postmoogle_database_engine: 'sqlite'
  41. matrix_postmoogle_sqlite_database_path_local: "{{ matrix_postmoogle_data_path }}/bot.db"
  42. matrix_postmoogle_sqlite_database_path_in_container: "/data/bot.db"
  43. matrix_postmoogle_database_username: 'postmoogle'
  44. matrix_postmoogle_database_password: 'some-password'
  45. matrix_postmoogle_database_hostname: ''
  46. matrix_postmoogle_database_port: 5432
  47. matrix_postmoogle_database_name: 'postmoogle'
  48. matrix_postmoogle_database_sslmode: disable
  49. matrix_postmoogle_database_connection_string: 'postgres://{{ matrix_postmoogle_database_username }}:{{ matrix_postmoogle_database_password }}@{{ matrix_postmoogle_database_hostname }}:{{ matrix_postmoogle_database_port }}/{{ matrix_postmoogle_database_name }}?sslmode={{ matrix_postmoogle_database_sslmode }}'
  50. matrix_postmoogle_storage_database: "{{
  51. {
  52. 'sqlite': matrix_postmoogle_sqlite_database_path_in_container,
  53. 'postgres': matrix_postmoogle_database_connection_string,
  54. }[matrix_postmoogle_database_engine]
  55. }}"
  56. matrix_postmoogle_database_dialect: "{{
  57. {
  58. 'sqlite': 'sqlite3',
  59. 'postgres': 'postgres',
  60. }[matrix_postmoogle_database_engine]
  61. }}"
  62. # The bot's username. This user needs to be created manually beforehand.
  63. # Also see `matrix_postmoogle_password` or `matrix_postmoogle_sharedsecret`
  64. matrix_postmoogle_login: "postmoogle"
  65. # The password that the bot uses to authenticate.
  66. matrix_postmoogle_password: ''
  67. # Alternative to password - shared secret requires matrix_postmoogle_login to be MXID
  68. matrix_postmoogle_sharedsecret: ''
  69. matrix_postmoogle_homeserver: ""
  70. # Command prefix
  71. matrix_postmoogle_prefix: '!pm'
  72. # Max email size in megabytes, including attachments
  73. matrix_postmoogle_maxsize: '1024'
  74. # Optional SMTP relay mode
  75. matrix_postmoogle_relay_host: ''
  76. matrix_postmoogle_relay_port: ''
  77. matrix_postmoogle_relay_username: ''
  78. matrix_postmoogle_relay_password: ''
  79. # A list of admins
  80. # Example set of rules:
  81. # matrix_postmoogle_admins:
  82. # - '@someone:example.com'
  83. # - '@another:example.com'
  84. # - '@bot.*:example.com'
  85. # - '@*:example.net'
  86. matrix_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
  87. # Sentry DSN. Deprecated, use matrix_postmoogle_monitoring_sentry_dsn
  88. matrix_postmoogle_sentry: ''
  89. # Sentry integration
  90. matrix_postmoogle_monitoring_sentry_dsn: "{{ matrix_postmoogle_sentry }}"
  91. matrix_postmoogle_monitoring_sentry_rate: 20
  92. # healthchecks.io integration
  93. matrix_postmoogle_monitoring_healthchecks_uuid: ''
  94. matrix_postmoogle_monitoring_healthchecks_duration: 60
  95. # Log level
  96. matrix_postmoogle_loglevel: 'INFO'
  97. # deprecated, use matrix_postmoogle_domains
  98. matrix_postmoogle_domain: "{{ matrix_server_fqn_matrix }}"
  99. matrix_postmoogle_domains:
  100. - "{{ matrix_postmoogle_domain }}" # backward compatibility
  101. # Password (passphrase) to encrypt account data
  102. matrix_postmoogle_data_secret: ""
  103. # in-container ports
  104. matrix_postmoogle_port: '2525'
  105. matrix_postmoogle_tls_port: '25587'
  106. # on-host ports
  107. matrix_postmoogle_smtp_host_bind_port: '25'
  108. matrix_postmoogle_submission_host_bind_port: '587'
  109. ### SSL
  110. ## on-host SSL dir
  111. matrix_postmoogle_ssl_path: ""
  112. ## in-container SSL paths
  113. # matrix_postmoogle_tls_cert is the SSL certificates' certificates.
  114. # This var is likely set via group_vars/matrix_servers, so you don't need to set certs manually.
  115. # If you do need to set it manually, note that this is an in-container path.
  116. # To mount a certificates volumes into the container, use matrix_postmoogle_ssl_path
  117. # Example value: /ssl/live/{{ matrix_postmoogle_domain }}/fullchain.pem
  118. matrix_postmoogle_tls_cert: ""
  119. # matrix_postmoogle_tls_key is the SSL certificates' keys.
  120. # This var is likely set via group_vars/matrix_servers, so you don't need to set keys manually.
  121. # If you do need to set it manually, note that this is an in-container path.
  122. # To mount a certificates volumes into the container, use matrix_postmoogle_ssl_path
  123. # Example value: /ssl/live/{{ matrix_postmoogle_domain }}/privkey.pem
  124. matrix_postmoogle_tls_key: ""
  125. # Mandatory TLS, even on plain SMTP port
  126. matrix_postmoogle_tls_required: false
  127. # trusted proxies
  128. matrix_postmoogle_proxies: []
  129. # known forwarders
  130. matrix_postmoogle_mailboxes_forwarded: []
  131. # reserved mailboxes
  132. matrix_postmoogle_mailboxes_reserved: []
  133. # mailbox activation flow
  134. matrix_postmoogle_mailboxes_activation: none
  135. # Additional environment variables to pass to the postmoogle container
  136. #
  137. # Example:
  138. # matrix_postmoogle_environment_variables_extension: |
  139. # postmoogle_TEXT_DONE=Done
  140. matrix_postmoogle_environment_variables_extension: ''