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.
 
 

105 lines
4.9 KiB

  1. # mautrix-amp is a Matrix <-> SMS bridge
  2. # See: https://mau.dev/tulir/mautrix-amp
  3. matrix_mautrix_amp_enabled: true
  4. # This bridge only supports a single user.
  5. matrix_mautrix_amp_bridge_user: ''
  6. # See: https://mau.dev/tulir/mautrix-amp/container_registry
  7. matrix_mautrix_amp_docker_image: "dock.mau.dev/tulir/mautrix-amp:latest"
  8. matrix_mautrix_amp_docker_image_force_pull: "{{ matrix_mautrix_amp_docker_image.endswith(':latest') }}"
  9. matrix_mautrix_amp_puppeteer_docker_image: "dock.mau.dev/tulir/mautrix-amp/puppeteer:latest"
  10. matrix_mautrix_amp_puppeteer_docker_image_force_pull: "{{ matrix_mautrix_amp_puppeteer_docker_image.endswith(':latest') }}"
  11. matrix_mautrix_amp_base_path: "{{ matrix_base_data_path }}/mautrix-amp"
  12. matrix_mautrix_amp_config_path: "{{ matrix_mautrix_amp_base_path }}/config"
  13. matrix_mautrix_amp_puppeteer_path: "{{ matrix_mautrix_amp_base_path }}/puppeteer"
  14. matrix_mautrix_amp_homeserver_address: ''
  15. matrix_mautrix_amp_homeserver_domain: ''
  16. matrix_mautrix_amp_appservice_address: 'http://matrix-mautrix-amp:29394'
  17. # Controls whether the matrix-mautrix-amp container exposes its port (tcp/29394 in the container).
  18. #
  19. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9006"), or empty string to not expose.
  20. matrix_mautrix_amp_container_http_host_bind_port: ''
  21. # A list of extra arguments to pass to the container
  22. matrix_mautrix_amp_container_extra_arguments: []
  23. # List of systemd services that matrix-mautrix-amp.service depends on.
  24. matrix_mautrix_amp_systemd_required_services_list:
  25. - 'docker.service'
  26. - 'matrix-mautrix-amp-puppeteer.service'
  27. # List of systemd services that matrix-mautrix-amp.service wants
  28. matrix_mautrix_amp_systemd_wanted_services_list: []
  29. # List of systemd services that matrix-mautrix-amp-puppeteer.service depends on.
  30. matrix_mautrix_amp_puppeteer_systemd_required_services_list: ['docker.service']
  31. # List of systemd services that matrix-mautrix-amp-puppeteer.service wants
  32. matrix_mautrix_amp_puppeteer_systemd_wanted_services_list: []
  33. matrix_mautrix_amp_appservice_token: ''
  34. matrix_mautrix_amp_homeserver_token: ''
  35. matrix_mautrix_amp_appservice_bot_username: ampbot
  36. # Database-related configuration fields
  37. #
  38. # This bridge only supports postgres.
  39. #
  40. matrix_mautrix_amp_database_engine: 'postgres'
  41. matrix_mautrix_amp_database_username: 'matrix_mautrix_amp'
  42. matrix_mautrix_amp_database_password: 'some-password'
  43. matrix_mautrix_amp_database_hostname: 'matrix-postgres'
  44. matrix_mautrix_amp_database_port: 5432
  45. matrix_mautrix_amp_database_name: 'matrix_mautrix_amp'
  46. matrix_mautrix_amp_database_connection_string: 'postgres://{{ matrix_mautrix_amp_database_username }}:{{ matrix_mautrix_amp_database_password }}@{{ matrix_mautrix_amp_database_hostname }}:{{ matrix_mautrix_amp_database_port }}/{{ matrix_mautrix_amp_database_name }}'
  47. matrix_mautrix_amp_appservice_database: "{{
  48. {
  49. 'postgres': matrix_mautrix_amp_database_connection_string,
  50. }[matrix_mautrix_amp_database_engine]
  51. }}"
  52. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  53. matrix_mautrix_amp_login_shared_secret: ''
  54. # Default configuration template which covers the generic use case.
  55. # You can customize it by controlling the various variables inside it.
  56. #
  57. # For a more advanced customization, you can extend the default (see `matrix_mautrix_amp_configuration_extension_yaml`)
  58. # or completely replace this variable with your own template.
  59. matrix_mautrix_amp_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  60. matrix_mautrix_amp_configuration_extension_yaml: |
  61. # Your custom YAML configuration goes here.
  62. # This configuration extends the default starting configuration (`matrix_mautrix_amp_configuration_yaml`).
  63. #
  64. # You can override individual variables from the default configuration, or introduce new ones.
  65. #
  66. # If you need something more special, you can take full control by
  67. # completely redefining `matrix_mautrix_amp_configuration_yaml`.
  68. matrix_mautrix_amp_configuration_extension: "{{ matrix_mautrix_amp_configuration_extension_yaml|from_yaml if matrix_mautrix_amp_configuration_extension_yaml|from_yaml is mapping else {} }}"
  69. # Holds the final configuration (a combination of the default and its extension).
  70. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_amp_configuration_yaml`.
  71. matrix_mautrix_amp_configuration: "{{ matrix_mautrix_amp_configuration_yaml|from_yaml|combine(matrix_mautrix_amp_configuration_extension, recursive=True) }}"
  72. matrix_mautrix_amp_registration_yaml: "{{ lookup('template', 'templates/registration.yaml.j2') }}"
  73. matrix_mautrix_amp_registration: "{{ matrix_mautrix_amp_registration_yaml|from_yaml }}"
  74. matrix_mautrix_amp_puppeteer_config_yaml: "{{ lookup('template', 'templates/puppeteer-config.yaml.j2') }}"
  75. matrix_mautrix_amp_puppeteer_config: "{{ matrix_mautrix_amp_puppeteer_config_yaml|from_yaml }}"
  76. matrix_mautrix_amp_log_level: 'DEBUG'