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.
 
 

129 line
7.9 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # matrix-appservice-webhooks is a Matrix <-> webhook bridge
  6. # Project source code URL: https://github.com/redoonetworks/matrix-appservice-webhooks
  7. matrix_appservice_webhooks_enabled: true
  8. matrix_appservice_webhooks_scheme: https
  9. matrix_appservice_webhooks_hostname: ''
  10. matrix_appservice_webhooks_path_prefix: /appservice-webhooks
  11. matrix_appservice_webhooks_container_image_self_build: false
  12. matrix_appservice_webhooks_container_image_self_build_repo: "https://github.com/redoonetworks/matrix-appservice-webhooks"
  13. matrix_appservice_webhooks_container_image_self_build_repo_version: "{{ 'master' if matrix_appservice_webhooks_version == 'latest' else matrix_appservice_webhooks_version }}"
  14. matrix_appservice_webhooks_container_image_self_build_repo_dockerfile_path: "Dockerfile"
  15. matrix_appservice_webhooks_version: v1.0.3-01
  16. matrix_appservice_webhooks_docker_image: "{{ matrix_appservice_webhooks_docker_image_name_prefix }}redoonetworks/matrix-appservice-webhooks:{{ matrix_appservice_webhooks_version }}"
  17. matrix_appservice_webhooks_docker_image_name_prefix: "{{ 'localhost/' if matrix_appservice_webhooks_container_image_self_build else matrix_container_global_registry_prefix }}"
  18. matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
  19. matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
  20. matrix_appservice_webhooks_config_path: "{{ matrix_appservice_webhooks_base_path }}/config"
  21. matrix_appservice_webhooks_data_path: "{{ matrix_appservice_webhooks_base_path }}/data"
  22. matrix_appservice_webhooks_docker_src_files_path: "{{ matrix_appservice_webhooks_base_path }}/docker-src"
  23. # If nginx-proxy is disabled, the bridge itself expects its endpoint to be on its own domain (e.g. "localhost:6789")
  24. matrix_appservice_webhooks_public_endpoint: "{{ matrix_appservice_webhooks_path_prefix }}"
  25. matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_appservice_webhooks_scheme }}://{{ matrix_appservice_webhooks_hostname }}{{ matrix_appservice_webhooks_public_endpoint }}"
  26. matrix_appservice_webhooks_bot_name: 'webhookbot'
  27. matrix_appservice_webhooks_user_prefix: '_webhook_'
  28. # Controls the webhooks_PORT and MATRIX_PORT of the installation
  29. matrix_appservice_webhooks_matrix_port: 6789
  30. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6789 in the container).
  31. #
  32. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  33. matrix_appservice_webhooks_container_http_host_bind_port: ''
  34. matrix_appservice_webhooks_container_network: ""
  35. matrix_appservice_webhooks_container_additional_networks: "{{ matrix_appservice_webhooks_container_additional_networks_auto + matrix_appservice_webhooks_container_additional_networks_custom }}"
  36. matrix_appservice_webhooks_container_additional_networks_auto: []
  37. matrix_appservice_webhooks_container_additional_networks_custom: []
  38. # matrix_appservice_webhooks_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  39. # See `../templates/labels.j2` for details.
  40. #
  41. # To inject your own other container labels, see `matrix_appservice_webhooks_container_labels_additional_labels`.
  42. matrix_appservice_webhooks_container_labels_traefik_enabled: true
  43. matrix_appservice_webhooks_container_labels_traefik_docker_network: "{{ matrix_appservice_webhooks_container_network }}"
  44. matrix_appservice_webhooks_container_labels_traefik_entrypoints: web-secure
  45. matrix_appservice_webhooks_container_labels_traefik_tls_certResolver: default # noqa var-naming
  46. # Controls whether labels will be added that expose matrix-appservice-webhook's public endpoints
  47. matrix_appservice_webhooks_container_labels_public_endpoint_enabled: true
  48. matrix_appservice_webhooks_container_labels_public_endpoint_hostname: "{{ matrix_appservice_webhooks_hostname }}"
  49. matrix_appservice_webhooks_container_labels_public_endpoint_prefix: "{{ matrix_appservice_webhooks_path_prefix }}"
  50. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_rule: "Host(`{{ matrix_appservice_webhooks_container_labels_public_endpoint_hostname }}`) && PathPrefix(`{{ matrix_appservice_webhooks_path_prefix }}`)"
  51. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority: 0
  52. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints: "{{ matrix_appservice_webhooks_container_labels_traefik_entrypoints }}"
  53. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls: "{{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints != 'web' }}"
  54. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls_certResolver: "{{ matrix_appservice_webhooks_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  55. # matrix_appservice_webhooks_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  56. # See `../templates/labels.j2` for details.
  57. #
  58. # Example:
  59. # matrix_appservice_webhooks_container_labels_additional_labels: |
  60. # my.label=1
  61. # another.label="here"
  62. matrix_appservice_webhooks_container_labels_additional_labels: ''
  63. # A list of extra arguments to pass to the container
  64. matrix_appservice_webhooks_container_extra_arguments: []
  65. # List of systemd services that matrix-appservice-webhooks.service depends on.
  66. matrix_appservice_webhooks_systemd_required_services_list: "{{ matrix_appservice_webhooks_systemd_required_services_list_default + matrix_appservice_webhooks_systemd_required_services_list_auto + matrix_appservice_webhooks_systemd_required_services_list_custom }}"
  67. matrix_appservice_webhooks_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  68. matrix_appservice_webhooks_systemd_required_services_list_auto: []
  69. matrix_appservice_webhooks_systemd_required_services_list_custom: []
  70. # List of systemd services that matrix-appservice-webhooks.service wants
  71. matrix_appservice_webhooks_systemd_wanted_services_list: []
  72. matrix_appservice_webhooks_homeserver_media_url: "{{ matrix_server_fqn_matrix }}"
  73. matrix_appservice_webhooks_homeserver_url: ""
  74. matrix_appservice_webhooks_homeserver_domain: "{{ matrix_domain }}"
  75. matrix_appservice_webhooks_appservice_url: 'http://matrix-appservice-webhooks'
  76. matrix_appservice_webhooks_appservice_token: ''
  77. matrix_appservice_webhooks_homeserver_token: ''
  78. matrix_appservice_webhooks_id_token: ''
  79. matrix_appservice_webhooks_api_secret: ''
  80. # Logging information (info and verbose is available) default is: info
  81. matrix_appservice_webhooks_log_level: 'info'
  82. matrix_appservice_webhooks_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  83. matrix_appservice_webhooks_configuration_extension_yaml: |
  84. #
  85. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml | from_yaml if matrix_appservice_webhooks_configuration_extension_yaml | from_yaml else {} }}"
  86. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml | from_yaml | combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  87. matrix_appservice_webhooks_registration_yaml: |
  88. id: "{{ matrix_appservice_webhooks_id_token }}"
  89. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  90. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  91. namespaces:
  92. users:
  93. - exclusive: true
  94. regex: '^@{{ matrix_appservice_webhooks_user_prefix | regex_escape }}.*:{{ matrix_domain | regex_escape }}$'
  95. aliases: []
  96. rooms: []
  97. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  98. sender_localpart: _webhook
  99. rate_limited: false
  100. protocols: null
  101. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml | from_yaml }}"