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.
 
 

77 lines
4.1 KiB

  1. # mautrix-facebook is a Matrix <-> Facebook bridge
  2. # See: https://github.com/tulir/mautrix-facebook
  3. matrix_mautrix_facebook_enabled: true
  4. matrix_mautrix_facebook_container_image_self_build: false
  5. matrix_mautrix_facebook_container_image_self_build_repo: "https://github.com/tulir/mautrix-facebook.git"
  6. # See: https://mau.dev/tulir/mautrix-facebook/container_registry
  7. matrix_mautrix_facebook_docker_image: "{{ matrix_mautrix_facebook_docker_image_name_prefix }}tulir/mautrix-facebook:latest"
  8. matrix_mautrix_facebook_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_facebook_container_image_self_build else 'dock.mau.dev/' }}"
  9. matrix_mautrix_facebook_docker_image_force_pull: "{{ matrix_mautrix_facebook_docker_image.endswith(':latest') }}"
  10. matrix_mautrix_facebook_base_path: "{{ matrix_base_data_path }}/mautrix-facebook"
  11. matrix_mautrix_facebook_config_path: "{{ matrix_mautrix_facebook_base_path }}/config"
  12. matrix_mautrix_facebook_data_path: "{{ matrix_mautrix_facebook_base_path }}/data"
  13. matrix_mautrix_facebook_docker_src_files_path: "{{ matrix_mautrix_facebook_base_path }}/docker-src"
  14. matrix_mautrix_facebook_homeserver_address: 'http://matrix-synapse:8008'
  15. matrix_mautrix_facebook_homeserver_domain: '{{ matrix_domain }}'
  16. matrix_mautrix_facebook_appservice_address: 'http://matrix-mautrix-facebook:29319'
  17. # A list of extra arguments to pass to the container
  18. matrix_mautrix_facebook_container_extra_arguments: []
  19. # List of systemd services that matrix-mautrix-facebook.service depends on.
  20. matrix_mautrix_facebook_systemd_required_services_list: ['docker.service']
  21. # List of systemd services that matrix-mautrix-facebook.service wants
  22. matrix_mautrix_facebook_systemd_wanted_services_list: []
  23. matrix_mautrix_facebook_appservice_token: ''
  24. matrix_mautrix_facebook_homeserver_token: ''
  25. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  26. matrix_mautrix_facebook_login_shared_secret: ''
  27. matrix_mautrix_facebook_bridge_login_shared_secret_map: "{{ {matrix_mautrix_facebook_homeserver_domain: matrix_mautrix_facebook_login_shared_secret} if matrix_mautrix_facebook_login_shared_secret else {} }}"
  28. matrix_mautrix_facebook_bridge_presence: true
  29. # Default configuration template which covers the generic use case.
  30. # You can customize it by controlling the various variables inside it.
  31. #
  32. # For a more advanced customization, you can extend the default (see `matrix_mautrix_facebook_configuration_extension_yaml`)
  33. # or completely replace this variable with your own template.
  34. matrix_mautrix_facebook_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  35. matrix_mautrix_facebook_configuration_extension_yaml: |
  36. # Your custom YAML configuration goes here.
  37. # This configuration extends the default starting configuration (`matrix_mautrix_facebook_configuration_yaml`).
  38. #
  39. # You can override individual variables from the default configuration, or introduce new ones.
  40. #
  41. # If you need something more special, you can take full control by
  42. # completely redefining `matrix_mautrix_facebook_configuration_yaml`.
  43. matrix_mautrix_facebook_configuration_extension: "{{ matrix_mautrix_facebook_configuration_extension_yaml|from_yaml if matrix_mautrix_facebook_configuration_extension_yaml|from_yaml is mapping else {} }}"
  44. # Holds the final configuration (a combination of the default and its extension).
  45. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_facebook_configuration_yaml`.
  46. matrix_mautrix_facebook_configuration: "{{ matrix_mautrix_facebook_configuration_yaml|from_yaml|combine(matrix_mautrix_facebook_configuration_extension, recursive=True) }}"
  47. matrix_mautrix_facebook_registration_yaml: |
  48. id: facebook
  49. as_token: "{{ matrix_mautrix_facebook_appservice_token }}"
  50. hs_token: "{{ matrix_mautrix_facebook_homeserver_token }}"
  51. namespaces:
  52. users:
  53. - exclusive: true
  54. regex: '^@facebook_.+:{{ matrix_mautrix_facebook_homeserver_domain|regex_escape }}$'
  55. url: {{ matrix_mautrix_facebook_appservice_address }}
  56. sender_localpart: facebookbot
  57. rate_limited: false
  58. matrix_mautrix_facebook_registration: "{{ matrix_mautrix_facebook_registration_yaml|from_yaml }}"