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.
 
 

68 lines
3.5 KiB

  1. # mautrix-whatsapp is a Matrix <-> Whatsapp bridge
  2. # See: https://github.com/tulir/mautrix-whatsapp
  3. matrix_mautrix_whatsapp_enabled: true
  4. # See: https://mau.dev/tulir/mautrix-whatsapp/container_registry
  5. matrix_mautrix_whatsapp_docker_image: "dock.mau.dev/tulir/mautrix-whatsapp:latest"
  6. matrix_mautrix_whatsapp_docker_image_force_pull: "{{ matrix_mautrix_whatsapp_docker_image.endswith(':latest') }}"
  7. matrix_mautrix_whatsapp_base_path: "{{ matrix_base_data_path }}/mautrix-whatsapp"
  8. matrix_mautrix_whatsapp_config_path: "{{ matrix_mautrix_whatsapp_base_path }}/config"
  9. matrix_mautrix_whatsapp_data_path: "{{ matrix_mautrix_whatsapp_base_path }}/data"
  10. matrix_mautrix_whatsapp_homeserver_address: "http://matrix-synapse:8008"
  11. matrix_mautrix_whatsapp_homeserver_domain: "{{ matrix_domain }}"
  12. matrix_mautrix_whatsapp_appservice_address: "http://matrix-mautrix-whatsapp:8080"
  13. # A list of extra arguments to pass to the container
  14. matrix_mautrix_whatsapp_container_extra_arguments: []
  15. # List of systemd services that matrix-mautrix-whatsapp.service depends on.
  16. matrix_mautrix_whatsapp_systemd_required_services_list: ['docker.service']
  17. # List of systemd services that matrix-mautrix-whatsapp.service wants
  18. matrix_mautrix_whatsapp_systemd_wanted_services_list: []
  19. matrix_mautrix_whatsapp_appservice_token: ''
  20. matrix_mautrix_whatsapp_homeserver_token: ''
  21. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  22. matrix_mautrix_whatsapp_login_shared_secret: ''
  23. # Default mautrix-whatsapp configuration template which covers the generic use case.
  24. # You can customize it by controlling the various variables inside it.
  25. #
  26. # For a more advanced customization, you can extend the default (see `matrix_mautrix_whatsapp_configuration_extension_yaml`)
  27. # or completely replace this variable with your own template.
  28. matrix_mautrix_whatsapp_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  29. matrix_mautrix_whatsapp_configuration_extension_yaml: |
  30. # Your custom YAML configuration goes here.
  31. # This configuration extends the default starting configuration (`matrix_mautrix_whatsapp_configuration_yaml`).
  32. #
  33. # You can override individual variables from the default configuration, or introduce new ones.
  34. #
  35. # If you need something more special, you can take full control by
  36. # completely redefining `matrix_mautrix_whatsapp_configuration_yaml`.
  37. matrix_mautrix_whatsapp_configuration_extension: "{{ matrix_mautrix_whatsapp_configuration_extension_yaml|from_yaml if matrix_mautrix_whatsapp_configuration_extension_yaml|from_yaml is mapping else {} }}"
  38. # Holds the final configuration (a combination of the default and its extension).
  39. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_whatsapp_configuration_yaml`.
  40. matrix_mautrix_whatsapp_configuration: "{{ matrix_mautrix_whatsapp_configuration_yaml|from_yaml|combine(matrix_mautrix_whatsapp_configuration_extension, recursive=True) }}"
  41. matrix_mautrix_whatsapp_registration_yaml: |
  42. id: whatsapp
  43. url: {{ matrix_mautrix_whatsapp_appservice_address }}
  44. as_token: "{{ matrix_mautrix_whatsapp_appservice_token }}"
  45. hs_token: "{{ matrix_mautrix_whatsapp_homeserver_token }}"
  46. sender_localpart: whatsappbot
  47. rate_limited: false
  48. namespaces:
  49. users:
  50. - regex: '^@whatsapp_[0-9]+:{{ matrix_mautrix_whatsapp_homeserver_domain|regex_escape }}$'
  51. exclusive: true
  52. matrix_mautrix_whatsapp_registration: "{{ matrix_mautrix_whatsapp_registration_yaml|from_yaml }}"