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.
 
 

135 lines
5.0 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. matrix_bot_postmoogle_ssl_path: "{{ matrix_ssl_config_dir_path }}"
  17. # A list of extra arguments to pass to the container
  18. matrix_bot_postmoogle_container_extra_arguments: []
  19. # List of systemd services that matrix-bot-postmoogle.service depends on
  20. matrix_bot_postmoogle_systemd_required_services_list: ['docker.service']
  21. # List of systemd services that matrix-bot-postmoogle.service wants
  22. matrix_bot_postmoogle_systemd_wanted_services_list: []
  23. # Database-related configuration fields.
  24. #
  25. # To use SQLite, stick to these defaults.
  26. #
  27. # To use Postgres:
  28. # - change the engine (`matrix_bot_postmoogle_database_engine: 'postgres'`)
  29. # - adjust your database credentials via the `matrix_bot_postmoogle_database_*` variables
  30. matrix_bot_postmoogle_database_engine: 'sqlite'
  31. matrix_bot_postmoogle_sqlite_database_path_local: "{{ matrix_bot_postmoogle_data_path }}/bot.db"
  32. matrix_bot_postmoogle_sqlite_database_path_in_container: "/data/bot.db"
  33. matrix_bot_postmoogle_database_username: 'postmoogle'
  34. matrix_bot_postmoogle_database_password: 'some-password'
  35. matrix_bot_postmoogle_database_hostname: 'matrix-postgres'
  36. matrix_bot_postmoogle_database_port: 5432
  37. matrix_bot_postmoogle_database_name: 'postmoogle'
  38. 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'
  39. matrix_bot_postmoogle_storage_database: "{{
  40. {
  41. 'sqlite': matrix_bot_postmoogle_sqlite_database_path_in_container,
  42. 'postgres': matrix_bot_postmoogle_database_connection_string,
  43. }[matrix_bot_postmoogle_database_engine]
  44. }}"
  45. matrix_bot_postmoogle_database_dialect: "{{
  46. {
  47. 'sqlite': 'sqlite3',
  48. 'postgres': 'postgres',
  49. }[matrix_bot_postmoogle_database_engine]
  50. }}"
  51. # The bot's username. This user needs to be created manually beforehand.
  52. # Also see `matrix_bot_postmoogle_password`.
  53. matrix_bot_postmoogle_login: "postmoogle"
  54. # The password that the bot uses to authenticate.
  55. matrix_bot_postmoogle_password: ''
  56. matrix_bot_postmoogle_homeserver: "{{ matrix_homeserver_container_url }}"
  57. # Command prefix
  58. matrix_bot_postmoogle_prefix: '!pm'
  59. # Max email size in megabytes, including attachments
  60. matrix_bot_postmoogle_maxsize: '1024'
  61. # DEPRECATED, use !pm users instead
  62. # A list of whitelisted users allowed to use the bridge.
  63. # If not defined, everyone is allowed.
  64. # Example set of rules:
  65. # matrix_bot_postmoogle_users:
  66. # - @someone:example.com
  67. # - @another:example.com
  68. # - @bot.*:example.com
  69. # - @*:another.com
  70. matrix_bot_postmoogle_users:
  71. - "@*:{{ matrix_domain }}"
  72. # A list of admins
  73. # Example set of rules:
  74. # matrix_bot_postmoogle_admins:
  75. # - @someone:example.com
  76. # - @another:example.com
  77. # - @bot.*:example.com
  78. # - @*:another.com
  79. matrix_bot_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
  80. # Sentry DSN
  81. matrix_bot_postmoogle_sentry: ''
  82. # Log level
  83. matrix_bot_postmoogle_loglevel: 'INFO'
  84. # Disable encryption
  85. matrix_bot_postmoogle_noencryption: false
  86. matrix_bot_postmoogle_domain: "{{ matrix_server_fqn_matrix }}"
  87. # Mandatory TLS, even on plain SMTP port
  88. matrix_bot_postmoogle_tls_required: false
  89. # in-container ports
  90. matrix_bot_postmoogle_port: '2525'
  91. matrix_bot_postmoogle_tls_port: '25587'
  92. # on-host ports
  93. matrix_bot_postmoogle_smtp_host_bind_port: '25'
  94. matrix_bot_postmoogle_smtps_host_bind_port: '587'
  95. # in-container SSL paths
  96. matrix_bot_postmoogle_tls_cert: "/ssl/live/{{ matrix_bot_postmoogle_domain }}/fullchain.pem"
  97. matrix_bot_postmoogle_tls_key: "/ssl/live/{{ matrix_bot_postmoogle_domain }}/privkey.pem"
  98. # Additional environment variables to pass to the postmoogle container
  99. #
  100. # Example:
  101. # matrix_bot_postmoogle_environment_variables_extension: |
  102. # postmoogle_TEXT_DONE=Done
  103. matrix_bot_postmoogle_environment_variables_extension: ''