Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

214 řádky
11 KiB

  1. ---
  2. # A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
  3. # https://github.com/matrix-org/matrix-hookshot
  4. matrix_hookshot_enabled: true
  5. matrix_hookshot_container_image_self_build: false
  6. matrix_hookshot_container_image_self_build_repo: "https://github.com/matrix-org/matrix-hookshot.git"
  7. matrix_hookshot_container_image_self_build_branch: "{{ 'main' if matrix_hookshot_version == 'latest' else matrix_hookshot_version }}"
  8. matrix_hookshot_version: 1.3.0
  9. matrix_hookshot_docker_image: "{{ matrix_hookshot_docker_image_name_prefix }}halfshot/matrix-hookshot:{{ matrix_hookshot_version }}"
  10. matrix_hookshot_docker_image_name_prefix: "{{ 'localhost/' if matrix_hookshot_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. matrix_hookshot_docker_image_force_pull: "{{ matrix_hookshot_docker_image.endswith(':latest') }}"
  12. matrix_hookshot_base_path: "{{ matrix_base_data_path }}/hookshot"
  13. matrix_hookshot_docker_src_files_path: "{{ matrix_hookshot_base_path }}/docker-src"
  14. matrix_hookshot_homeserver_address: "{{ matrix_homeserver_container_url }}"
  15. matrix_hookshot_container_url: 'matrix-hookshot'
  16. matrix_hookshot_public_endpoint: /hookshot
  17. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  18. matrix_hookshot_appservice_port: 9993
  19. matrix_hookshot_appservice_endpoint: "{{ matrix_hookshot_public_endpoint }}/_matrix/app"
  20. # Metrics work only in conjunction with matrix_synapse_metrics_enabled etc
  21. matrix_hookshot_metrics_enabled: true
  22. # There is no need to edit ports.
  23. # Read the documentation to learn about using hookshot metrics with external Prometheus
  24. # If you still want something different, use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  25. matrix_hookshot_metrics_port: 9001
  26. matrix_hookshot_metrics_endpoint: "{{ matrix_hookshot_public_endpoint }}/metrics"
  27. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  28. matrix_hookshot_webhook_port: 9000
  29. matrix_hookshot_webhook_endpoint: "{{ matrix_hookshot_public_endpoint }}/webhooks"
  30. # You need to create a GitHub app to enable this and fill in the empty variables below
  31. # https://matrix-org.github.io/matrix-hookshot/setup/github.html
  32. matrix_hookshot_github_enabled: false
  33. matrix_hookshot_github_appid: ''
  34. # Set this variable to the contents of the generated and downloaded GitHub private key:
  35. # matrix_hookshot_github_private_key: |
  36. # -----BEGIN RSA PRIVATE KEY-----
  37. # 0123456789ABCDEF...
  38. # -----END RSA PRIVATE KEY-----
  39. # Alternatively, leave it empty and do it manually or use matrix-aux instead, see docs/matrix-bridge-hookshot.md for info.
  40. matrix_hookshot_github_private_key: ''
  41. matrix_hookshot_github_private_key_file: 'private-key.pem'
  42. matrix_hookshot_github_secret: '' # "Webhook secret" on the GitHub App page
  43. matrix_hookshot_github_oauth_enabled: false
  44. # You need to configure oauth settings only when you have enabled oauth (optional)
  45. matrix_hookshot_github_oauth_id: '' # "Client ID" on the GitHub App page
  46. matrix_hookshot_github_oauth_secret: '' # "Client Secret" on the GitHub App page
  47. # Default value of matrix_hookshot_github_oauth_endpoint: "/hookshot/webhooks/oauth"
  48. matrix_hookshot_github_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/oauth"
  49. matrix_hookshot_github_oauth_uri: "https://{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_github_oauth_endpoint }}"
  50. # These are the default settings mentioned here and don't need to be modified: https://matrix-org.github.io/matrix-hookshot/usage/room_configuration/github_repo.html#configuration
  51. matrix_hookshot_github_ignore_hooks: "{}"
  52. matrix_hookshot_github_command_prefix: '!gh'
  53. matrix_hookshot_github_show_issue_room_link: false
  54. matrix_hookshot_github_pr_diff: "{enabled: false, maxLines: 5}"
  55. matrix_hookshot_github_including_labels: ''
  56. matrix_hookshot_github_excluding_labels: ''
  57. matrix_hookshot_gitlab_enabled: true
  58. # Optionally add your instances, e.g.
  59. # matrix_hookshot_gitlab_instances:
  60. # gitlab.com:
  61. # url: https://gitlab.com
  62. # mygitlab:
  63. # url: https://gitlab.example.org
  64. matrix_hookshot_gitlab_instances:
  65. gitlab.com:
  66. url: https://gitlab.com
  67. # This will be the "Secret token" you have to enter into all GitLab instances for authentication
  68. matrix_hookshot_gitlab_secret: ''
  69. matrix_hookshot_jira_enabled: false
  70. # Get the these values from https://matrix-org.github.io/matrix-hookshot/setup/jira.html#jira-oauth
  71. matrix_hookshot_jira_secret: ''
  72. matrix_hookshot_jira_oauth_enabled: false
  73. matrix_hookshot_jira_oauth_id: ''
  74. matrix_hookshot_jira_oauth_secret: ''
  75. # Default value of matrix_hookshot_jira_oauth_endpoint: "/hookshot/webhooks/jira/oauth"
  76. matrix_hookshot_jira_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/jira/oauth"
  77. matrix_hookshot_jira_oauth_uri: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_jira_oauth_endpoint }}"
  78. # No need to change these
  79. matrix_hookshot_generic_enabled: true
  80. # Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks"
  81. matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
  82. # urlprefix gets updated with protocol & port in group_vars/matrix_servers
  83. matrix_hookshot_generic_urlprefix: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_generic_endpoint }}"
  84. matrix_hookshot_generic_allow_js_transformation_functions: false
  85. # If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap
  86. matrix_hookshot_generic_user_id_prefix: '_webhooks_'
  87. matrix_hookshot_figma_enabled: false
  88. # Default value of matrix_hookshot_figma_endpoint: "/hookshot/webhooks/figma/webhook"
  89. matrix_hookshot_figma_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/figma/webhook"
  90. matrix_hookshot_figma_publicUrl: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_figma_endpoint }}"
  91. # To bridge figma webhooks, you need to configure one of multiple instances like this:
  92. # matrix_hookshot_figma_instances:
  93. # your-instance:
  94. # teamId: your-team-id
  95. # accessToken: your-personal-access-token
  96. # passcode: your-webhook-passcode
  97. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  98. matrix_hookshot_provisioning_port: 9002
  99. matrix_hookshot_provisioning_secret: ''
  100. # Provisioning will be automatically enabled if dimension is enabled and you have provided a provisioning secret, unless you override it
  101. matrix_hookshot_provisioning_enabled: false
  102. matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}/v1"
  103. # You can configure access to the bridge as documented here https://matrix-org.github.io/matrix-hookshot/setup.html#permissions
  104. # When empty, the default permissions are applied.
  105. # Example:
  106. # matrix_hookshot_permissions:
  107. # - actor: *
  108. # services:
  109. # - service: *
  110. # level: commands
  111. # - actor: example.com
  112. # services:
  113. # - service: "*"
  114. # level: admin
  115. matrix_hookshot_permissions: []
  116. matrix_hookshot_bot_displayname: Hookshot Bot
  117. matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'
  118. # A list of extra arguments to pass to the container
  119. matrix_hookshot_container_extra_arguments: []
  120. # List of systemd services that service depends on.
  121. matrix_hookshot_systemd_required_services_list: ['docker.service']
  122. # List of systemd services that service wants
  123. matrix_hookshot_systemd_wanted_services_list: []
  124. # List of ports to bind to the host to expose them directly.
  125. # Ports will automatically be bound to localhost if matrix_nginx_proxy_enabled is false.
  126. # Setting this variable will override that behaviour in either case.
  127. # Supply docker port bind arguments in a list like this:
  128. #
  129. # matrix_hookshot_container_http_host_bind_ports:
  130. # - "127.0.0.1:9999:{{ matrix_hookshot_metrics_port }}"
  131. #
  132. # Above example will bind the metrics port in the container to port 9999 on localhost.
  133. matrix_hookshot_container_http_host_bind_ports: []
  134. # These tokens will be set automatically
  135. matrix_hookshot_appservice_token: ''
  136. matrix_hookshot_homeserver_token: ''
  137. # Default configuration template which covers the generic use case.
  138. # You can customize it by controlling the various variables inside it.
  139. #
  140. # For a more advanced customization, you can extend the default (see `matrixhookshot_configuration_extension_yaml`)
  141. # or completely replace this variable with your own template.
  142. matrix_hookshot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  143. matrix_hookshot_configuration_extension_yaml: |
  144. # Your custom YAML configuration goes here.
  145. # This configuration extends the default starting configuration (`matrix_hookshot_configuration_yaml`).
  146. #
  147. # You can override individual variables from the default configuration, or introduce new ones.
  148. #
  149. # If you need something more special, you can take full control by
  150. # completely redefining `matrix_hookshot_configuration_yaml`.
  151. matrix_hookshot_configuration_extension: "{{ matrix_hookshot_configuration_extension_yaml|from_yaml if matrix_hookshot_configuration_extension_yaml|from_yaml is mapping else {} }}"
  152. # Holds the final configuration (a combination of the default and its extension).
  153. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_configuration_yaml`.
  154. matrix_hookshot_configuration: "{{ matrix_hookshot_configuration_yaml|from_yaml|combine(matrix_hookshot_configuration_extension, recursive=True) }}"
  155. # Default registration template which covers the generic use case.
  156. # You can customize it by controlling the various variables inside it.
  157. #
  158. # For a more advanced customization, you can extend the default (see `matrixhookshot_registration_extension_yaml`)
  159. # or completely replace this variable with your own template.
  160. matrix_hookshot_registration_yaml: "{{ lookup('template', 'templates/registration.yml.j2') }}"
  161. matrix_hookshot_registration_extension_yaml: |
  162. # Your custom YAML registration goes here.
  163. # This registration extends the default starting registration (`matrix_hookshot_registration_yaml`).
  164. #
  165. # You can override individual variables from the default registration, or introduce new ones.
  166. #
  167. # If you need something more special, you can take full control by
  168. # completely redefining `matrix_hookshot_registration_yaml`.
  169. matrix_hookshot_registration_extension: "{{ matrix_hookshot_registration_extension_yaml|from_yaml if matrix_hookshot_registration_extension_yaml|from_yaml is mapping else {} }}"
  170. # Holds the final registration (a combination of the default and its extension).
  171. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_registration_yaml`.
  172. matrix_hookshot_registration: "{{ matrix_hookshot_registration_yaml|from_yaml|combine(matrix_hookshot_registration_extension, recursive=True) }}"