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.
 
 

80 lines
4.2 KiB

  1. # mautrix-hangouts is a Matrix <-> Hangouts bridge
  2. # See: https://github.com/tulir/mautrix-hangouts
  3. matrix_mautrix_hangouts_enabled: true
  4. matrix_mautrix_hangouts_container_image_self_build: false
  5. matrix_mautrix_hangouts_container_image_self_build_repo: "https://github.com/tulir/mautrix-hangouts.git"
  6. # See: https://mau.dev/tulir/mautrix-hangouts/container_registry
  7. matrix_mautrix_hangouts_docker_image: "{{ matrix_mautrix_hangouts_docker_image_name_prefix }}tulir/mautrix-hangouts:latest"
  8. matrix_mautrix_hangouts_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_hangouts_container_image_self_build else 'dock.mau.dev/' }}"
  9. matrix_mautrix_hangouts_docker_image_force_pull: "{{ matrix_mautrix_hangouts_docker_image.endswith(':latest') }}"
  10. matrix_mautrix_hangouts_base_path: "{{ matrix_base_data_path }}/mautrix-hangouts"
  11. matrix_mautrix_hangouts_config_path: "{{ matrix_mautrix_hangouts_base_path }}/config"
  12. matrix_mautrix_hangouts_data_path: "{{ matrix_mautrix_hangouts_base_path }}/data"
  13. matrix_mautrix_hangouts_docker_src_files_path: "{{ matrix_mautrix_hangouts_base_path }}/docker-src"
  14. matrix_mautrix_hangouts_public_endpoint: '/mautrix-hangouts'
  15. matrix_mautrix_hangouts_homeserver_address: 'http://matrix-synapse:8008'
  16. matrix_mautrix_hangouts_homeserver_domain: '{{ matrix_domain }}'
  17. matrix_mautrix_hangouts_appservice_address: 'http://matrix-mautrix-hangouts:8080'
  18. # Controls whether the matrix-mautrix-hangouts container exposes its HTTP port (tcp/8080 in the container).
  19. #
  20. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9007"), or empty string to not expose.
  21. matrix_mautrix_hangouts_container_http_host_bind_port: ''
  22. # A list of extra arguments to pass to the container
  23. matrix_mautrix_hangouts_container_extra_arguments: []
  24. # List of systemd services that matrix-mautrix-hangouts.service depends on.
  25. matrix_mautrix_hangouts_systemd_required_services_list: ['docker.service']
  26. # List of systemd services that matrix-mautrix-hangouts.service wants
  27. matrix_mautrix_hangouts_systemd_wanted_services_list: []
  28. matrix_mautrix_hangouts_appservice_token: ''
  29. matrix_mautrix_hangouts_homeserver_token: ''
  30. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  31. matrix_mautrix_hangouts_login_shared_secret: ''
  32. # Default configuration template which covers the generic use case.
  33. # You can customize it by controlling the various variables inside it.
  34. #
  35. # For a more advanced customization, you can extend the default (see `matrix_mautrix_hangouts_configuration_extension_yaml`)
  36. # or completely replace this variable with your own template.
  37. matrix_mautrix_hangouts_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  38. matrix_mautrix_hangouts_configuration_extension_yaml: |
  39. # Your custom YAML configuration goes here.
  40. # This configuration extends the default starting configuration (`matrix_mautrix_hangouts_configuration_yaml`).
  41. #
  42. # You can override individual variables from the default configuration, or introduce new ones.
  43. #
  44. # If you need something more special, you can take full control by
  45. # completely redefining `matrix_mautrix_hangouts_configuration_yaml`.
  46. matrix_mautrix_hangouts_configuration_extension: "{{ matrix_mautrix_hangouts_configuration_extension_yaml|from_yaml if matrix_mautrix_hangouts_configuration_extension_yaml|from_yaml is mapping else {} }}"
  47. # Holds the final configuration (a combination of the default and its extension).
  48. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_hangouts_configuration_yaml`.
  49. matrix_mautrix_hangouts_configuration: "{{ matrix_mautrix_hangouts_configuration_yaml|from_yaml|combine(matrix_mautrix_hangouts_configuration_extension, recursive=True) }}"
  50. matrix_mautrix_hangouts_registration_yaml: |
  51. id: hangouts
  52. as_token: "{{ matrix_mautrix_hangouts_appservice_token }}"
  53. hs_token: "{{ matrix_mautrix_hangouts_homeserver_token }}"
  54. namespaces:
  55. users:
  56. - exclusive: true
  57. regex: '^@hangouts_.+:{{ matrix_mautrix_hangouts_homeserver_domain|regex_escape }}$'
  58. url: {{ matrix_mautrix_hangouts_appservice_address }}
  59. sender_localpart: hangoutsbot
  60. rate_limited: false
  61. matrix_mautrix_hangouts_registration: "{{ matrix_mautrix_hangouts_registration_yaml|from_yaml }}"