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.
 
 

149 line
5.6 KiB

  1. ---
  2. # postmoogle is an email to matrix bot
  3. # Project source code URL: https://gitlab.com/etke.cc/postmoogle
  4. matrix_bot_postmoogle_enabled: true
  5. matrix_bot_postmoogle_container_image_self_build: false
  6. matrix_bot_postmoogle_docker_repo: "https://gitlab.com/etke.cc/postmoogle.git"
  7. matrix_bot_postmoogle_docker_repo_version: "{{ 'main' if matrix_bot_postmoogle_version == 'latest' else matrix_bot_postmoogle_version }}"
  8. matrix_bot_postmoogle_docker_src_files_path: "{{ matrix_base_data_path }}/postmoogle/docker-src"
  9. matrix_bot_postmoogle_version: v0.9.1
  10. matrix_bot_postmoogle_docker_image: "{{ matrix_bot_postmoogle_docker_image_name_prefix }}postmoogle:{{ matrix_bot_postmoogle_version }}"
  11. matrix_bot_postmoogle_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_postmoogle_container_image_self_build else 'registry.gitlab.com/etke.cc/' }}"
  12. matrix_bot_postmoogle_docker_image_force_pull: "{{ matrix_bot_postmoogle_docker_image.endswith(':latest') }}"
  13. matrix_bot_postmoogle_base_path: "{{ matrix_base_data_path }}/postmoogle"
  14. matrix_bot_postmoogle_config_path: "{{ matrix_bot_postmoogle_base_path }}/config"
  15. matrix_bot_postmoogle_data_path: "{{ matrix_bot_postmoogle_base_path }}/data"
  16. # A list of extra arguments to pass to the container
  17. matrix_bot_postmoogle_container_extra_arguments: []
  18. # List of systemd services that matrix-bot-postmoogle.service depends on
  19. matrix_bot_postmoogle_systemd_required_services_list: ['docker.service']
  20. # List of systemd services that matrix-bot-postmoogle.service wants
  21. matrix_bot_postmoogle_systemd_wanted_services_list: []
  22. # Database-related configuration fields.
  23. #
  24. # To use SQLite, stick to these defaults.
  25. #
  26. # To use Postgres:
  27. # - change the engine (`matrix_bot_postmoogle_database_engine: 'postgres'`)
  28. # - adjust your database credentials via the `matrix_bot_postmoogle_database_*` variables
  29. matrix_bot_postmoogle_database_engine: 'sqlite'
  30. matrix_bot_postmoogle_sqlite_database_path_local: "{{ matrix_bot_postmoogle_data_path }}/bot.db"
  31. matrix_bot_postmoogle_sqlite_database_path_in_container: "/data/bot.db"
  32. matrix_bot_postmoogle_database_username: 'postmoogle'
  33. matrix_bot_postmoogle_database_password: 'some-password'
  34. matrix_bot_postmoogle_database_hostname: 'matrix-postgres'
  35. matrix_bot_postmoogle_database_port: 5432
  36. matrix_bot_postmoogle_database_name: 'postmoogle'
  37. matrix_bot_postmoogle_database_connection_string: 'postgres://{{ matrix_bot_postmoogle_database_username }}:{{ matrix_bot_postmoogle_database_password }}@{{ matrix_bot_postmoogle_database_hostname }}:{{ matrix_bot_postmoogle_database_port }}/{{ matrix_bot_postmoogle_database_name }}?sslmode=disable'
  38. matrix_bot_postmoogle_storage_database: "{{
  39. {
  40. 'sqlite': matrix_bot_postmoogle_sqlite_database_path_in_container,
  41. 'postgres': matrix_bot_postmoogle_database_connection_string,
  42. }[matrix_bot_postmoogle_database_engine]
  43. }}"
  44. matrix_bot_postmoogle_database_dialect: "{{
  45. {
  46. 'sqlite': 'sqlite3',
  47. 'postgres': 'postgres',
  48. }[matrix_bot_postmoogle_database_engine]
  49. }}"
  50. # The bot's username. This user needs to be created manually beforehand.
  51. # Also see `matrix_bot_postmoogle_password`.
  52. matrix_bot_postmoogle_login: "postmoogle"
  53. # The password that the bot uses to authenticate.
  54. matrix_bot_postmoogle_password: ''
  55. matrix_bot_postmoogle_homeserver: "{{ matrix_homeserver_container_url }}"
  56. # Command prefix
  57. matrix_bot_postmoogle_prefix: '!pm'
  58. # Max email size in megabytes, including attachments
  59. matrix_bot_postmoogle_maxsize: '1024'
  60. # DEPRECATED, use !pm users instead
  61. # A list of whitelisted users allowed to use the bridge.
  62. # If not defined, everyone is allowed.
  63. # Example set of rules:
  64. # matrix_bot_postmoogle_users:
  65. # - @someone:example.com
  66. # - @another:example.com
  67. # - @bot.*:example.com
  68. # - @*:another.com
  69. matrix_bot_postmoogle_users:
  70. - "@*:{{ matrix_domain }}"
  71. # A list of admins
  72. # Example set of rules:
  73. # matrix_bot_postmoogle_admins:
  74. # - @someone:example.com
  75. # - @another:example.com
  76. # - @bot.*:example.com
  77. # - @*:another.com
  78. matrix_bot_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
  79. # Sentry DSN
  80. matrix_bot_postmoogle_sentry: ''
  81. # Log level
  82. matrix_bot_postmoogle_loglevel: 'INFO'
  83. # Disable encryption
  84. matrix_bot_postmoogle_noencryption: false
  85. matrix_bot_postmoogle_domain: "{{ matrix_server_fqn_matrix }}"
  86. # in-container ports
  87. matrix_bot_postmoogle_port: '2525'
  88. matrix_bot_postmoogle_tls_port: '25587'
  89. # on-host ports
  90. matrix_bot_postmoogle_smtp_host_bind_port: '25'
  91. matrix_bot_postmoogle_submission_host_bind_port: '587'
  92. ### SSL
  93. ## on-host SSL dir
  94. matrix_bot_postmoogle_ssl_path: ""
  95. ## in-container SSL paths
  96. # matrix_bot_postmoogle_tls_cert is the SSL certificate's certificate.
  97. # This is likely set via group_vars/matrix_servers, so you don't need to set it.
  98. # If you do need to set it manually, note that this is an in-container path.
  99. # To mount a certificates volumes into the container, use matrix_bot_postmoogle_ssl_path
  100. # Example value: /ssl/live/{{ matrix_bot_postmoogle_domain }}/fullchain.pem
  101. matrix_bot_postmoogle_tls_cert: ""
  102. # matrix_bot_postmoogle_tls_key is the SSL certificate's key.
  103. # This is likely set via group_vars/matrix_servers, so you don't need to set it.
  104. # If you do need to set it manually, note that this is an in-container path.
  105. # To mount a certificates volumes into the container, use matrix_bot_postmoogle_ssl_path
  106. # Example value: /ssl/live/{{ matrix_bot_postmoogle_domain }}/privkey.pem
  107. matrix_bot_postmoogle_tls_key: ""
  108. # Mandatory TLS, even on plain SMTP port
  109. matrix_bot_postmoogle_tls_required: false
  110. # Additional environment variables to pass to the postmoogle container
  111. #
  112. # Example:
  113. # matrix_bot_postmoogle_environment_variables_extension: |
  114. # postmoogle_TEXT_DONE=Done
  115. matrix_bot_postmoogle_environment_variables_extension: ''