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.
 
 

263 lines
13 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.7.3
  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. # Controls whether metrics are enabled in the bridge configuration.
  21. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  22. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_hookshot_metrics_proxying_enabled`.
  23. matrix_hookshot_metrics_enabled: false
  24. # Controls whether Hookshot metrics should be proxied (exposed) on `matrix.DOMAIN/metrics/hookshot`.
  25. # This will only work take effect if `matrix_nginx_proxy_proxy_matrix_metrics_enabled: true`.
  26. # See the `matrix-nginx-proxy` role for details about enabling `matrix_nginx_proxy_proxy_matrix_metrics_enabled`.
  27. matrix_hookshot_metrics_proxying_enabled: false
  28. # There is no need to edit ports.
  29. # Read the documentation to learn about using hookshot metrics with external Prometheus
  30. # If you still want something different, use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  31. matrix_hookshot_metrics_port: 9001
  32. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  33. matrix_hookshot_webhook_port: 9000
  34. matrix_hookshot_webhook_endpoint: "{{ matrix_hookshot_public_endpoint }}/webhooks"
  35. # You need to create a GitHub app to enable this and fill in the empty variables below
  36. # https://matrix-org.github.io/matrix-hookshot/setup/github.html
  37. matrix_hookshot_github_enabled: false
  38. matrix_hookshot_github_appid: ''
  39. # Set this variable to the contents of the generated and downloaded GitHub private key:
  40. # matrix_hookshot_github_private_key: |
  41. # -----BEGIN RSA PRIVATE KEY-----
  42. # 0123456789ABCDEF...
  43. # -----END RSA PRIVATE KEY-----
  44. # Alternatively, leave it empty and do it manually or use matrix-aux instead, see docs/matrix-bridge-hookshot.md for info.
  45. matrix_hookshot_github_private_key: ''
  46. matrix_hookshot_github_private_key_file: 'private-key.pem'
  47. matrix_hookshot_github_secret: '' # "Webhook secret" on the GitHub App page
  48. matrix_hookshot_github_oauth_enabled: false
  49. # You need to configure oauth settings only when you have enabled oauth (optional)
  50. matrix_hookshot_github_oauth_id: '' # "Client ID" on the GitHub App page
  51. matrix_hookshot_github_oauth_secret: '' # "Client Secret" on the GitHub App page
  52. # Default value of matrix_hookshot_github_oauth_endpoint: "/hookshot/webhooks/oauth"
  53. matrix_hookshot_github_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/oauth"
  54. matrix_hookshot_github_oauth_uri: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_github_oauth_endpoint }}"
  55. # 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
  56. matrix_hookshot_github_ignore_hooks: "{}"
  57. matrix_hookshot_github_command_prefix: '!gh'
  58. matrix_hookshot_github_showIssueRoomLink: false
  59. matrix_hookshot_github_pr_diff: "{enabled: false, maxLines: 5}"
  60. matrix_hookshot_github_including_labels: ''
  61. matrix_hookshot_github_excluding_labels: ''
  62. matrix_hookshot_github_hotlink_prefix: "#"
  63. matrix_hookshot_gitlab_enabled: true
  64. # Optionally add your instances, e.g.
  65. # matrix_hookshot_gitlab_instances:
  66. # gitlab.com:
  67. # url: https://gitlab.com
  68. # mygitlab:
  69. # url: https://gitlab.example.org
  70. matrix_hookshot_gitlab_instances:
  71. gitlab.com:
  72. url: https://gitlab.com
  73. # This will be the "Secret token" you have to enter into all GitLab instances for authentication
  74. matrix_hookshot_gitlab_secret: ''
  75. matrix_hookshot_figma_enabled: false
  76. # Default value of matrix_hookshot_figma_endpoint: "/hookshot/webhooks/figma/webhook"
  77. matrix_hookshot_figma_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/figma/webhook"
  78. matrix_hookshot_figma_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_figma_endpoint }}"
  79. # To bridge figma webhooks, you need to configure one of multiple instances like this:
  80. # matrix_hookshot_figma_instances:
  81. # your-instance:
  82. # teamId: your-team-id
  83. # accessToken: your-personal-access-token
  84. # passcode: your-webhook-passcode
  85. matrix_hookshot_jira_enabled: false
  86. # Get the these values from https://matrix-org.github.io/matrix-hookshot/setup/jira.html#jira-oauth
  87. matrix_hookshot_jira_secret: ''
  88. matrix_hookshot_jira_oauth_enabled: false
  89. matrix_hookshot_jira_oauth_id: ''
  90. matrix_hookshot_jira_oauth_secret: ''
  91. # Default value of matrix_hookshot_jira_oauth_endpoint: "/hookshot/webhooks/jira/oauth"
  92. matrix_hookshot_jira_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/jira/oauth"
  93. matrix_hookshot_jira_oauth_uri: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_jira_oauth_endpoint }}"
  94. # No need to change these
  95. matrix_hookshot_generic_enabled: true
  96. # Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks"
  97. matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
  98. # urlprefix gets updated with protocol & port in group_vars/matrix_servers
  99. matrix_hookshot_generic_urlprefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_generic_endpoint }}"
  100. matrix_hookshot_generic_allow_js_transformation_functions: false
  101. # If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap
  102. matrix_hookshot_generic_user_id_prefix: '_webhooks_'
  103. matrix_hookshot_feeds_enabled: false
  104. # polling interval in seconds
  105. matrix_hookshot_feeds_interval: 600
  106. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  107. matrix_hookshot_provisioning_port: 9002
  108. matrix_hookshot_provisioning_secret: ''
  109. # Provisioning will be automatically enabled if dimension is enabled and you have provided a provisioning secret, unless you override it
  110. matrix_hookshot_provisioning_enabled: false
  111. matrix_hookshot_provisioning_internal: "/v1"
  112. matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_provisioning_internal }}"
  113. matrix_hookshot_widgets_enabled: true
  114. matrix_hookshot_widgets_port: 9003
  115. matrix_hookshot_widgets_addToAdminRooms: false # default off as it is a beta feature
  116. matrix_hookshot_widgets_roomSetupWidget_enabled: true
  117. matrix_hookshot_widgets_roomSetupWidget_addOnInvite: false
  118. # `disallowedIpRanges` describes which IP ranges should be disallowed when resolving homeserver IP addresses (for security reasons). Unless you know what you are doing, it is recommended to not include this key. The following IPs are blocked by default, unless you supply another list.
  119. # matrix_hookshot_widgets_disallowedIpRanges:
  120. # - 127.0.0.0/8
  121. # - 10.0.0.0/8
  122. # - 172.16.0.0/12
  123. # - 192.168.0.0/16
  124. # - 100.64.0.0/10
  125. # - 192.0.0.0/24
  126. # - 169.254.0.0/16
  127. # - 192.88.99.0/24
  128. # - 198.18.0.0/15
  129. # - 192.0.2.0/24
  130. # - 198.51.100.0/24
  131. # - 203.0.113.0/24
  132. # - 224.0.0.0/4
  133. # - ::1/128
  134. # - fe80::/10
  135. # - fc00::/7
  136. # - 2001:db8::/32
  137. # - ff00::/8
  138. # - fec0::/10
  139. matrix_hookshot_widgets_disallowedIpRanges: ''
  140. matrix_hookshot_widgets_internal: "/widgetapi"
  141. # Default value of matrix_hookshot_widgets_endpoint: "/hookshot/widgetapi"
  142. matrix_hookshot_widgets_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_widgets_internal }}"
  143. matrix_hookshot_widgets_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_widgets_endpoint }}/v1/static"
  144. matrix_hookshot_widgets_branding_widgetTitle: "Hookshot Configuration"
  145. # You can configure access to the bridge as documented here https://matrix-org.github.io/matrix-hookshot/setup.html#permissions
  146. # When empty, the default permissions are applied.
  147. # Example:
  148. # matrix_hookshot_permissions:
  149. # - actor: *
  150. # services:
  151. # - service: *
  152. # level: commands
  153. # - actor: example.com
  154. # services:
  155. # - service: "*"
  156. # level: admin
  157. matrix_hookshot_permissions: []
  158. matrix_hookshot_bot_displayname: Hookshot Bot
  159. matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'
  160. # A list of extra arguments to pass to the container
  161. matrix_hookshot_container_extra_arguments: []
  162. # List of systemd services that service depends on.
  163. matrix_hookshot_systemd_required_services_list: ['docker.service']
  164. # List of systemd services that service wants
  165. matrix_hookshot_systemd_wanted_services_list: []
  166. # List of ports to bind to the host to expose them directly.
  167. # Ports will automatically be bound to localhost if matrix_nginx_proxy_enabled is false.
  168. # Setting this variable will override that behaviour in either case.
  169. # Supply docker port bind arguments in a list like this:
  170. #
  171. # matrix_hookshot_container_http_host_bind_ports:
  172. # - "127.0.0.1:9999:{{ matrix_hookshot_metrics_port }}"
  173. #
  174. # Above example will bind the metrics port in the container to port 9999 on localhost.
  175. matrix_hookshot_container_http_host_bind_ports: []
  176. # These tokens will be set automatically
  177. matrix_hookshot_appservice_token: ''
  178. matrix_hookshot_homeserver_token: ''
  179. # Default configuration template which covers the generic use case.
  180. # You can customize it by controlling the various variables inside it.
  181. #
  182. # For a more advanced customization, you can extend the default (see `matrixhookshot_configuration_extension_yaml`)
  183. # or completely replace this variable with your own template.
  184. matrix_hookshot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  185. matrix_hookshot_configuration_extension_yaml: |
  186. # Your custom YAML configuration goes here.
  187. # This configuration extends the default starting configuration (`matrix_hookshot_configuration_yaml`).
  188. #
  189. # You can override individual variables from the default configuration, or introduce new ones.
  190. #
  191. # If you need something more special, you can take full control by
  192. # completely redefining `matrix_hookshot_configuration_yaml`.
  193. matrix_hookshot_configuration_extension: "{{ matrix_hookshot_configuration_extension_yaml|from_yaml if matrix_hookshot_configuration_extension_yaml|from_yaml is mapping else {} }}"
  194. # Holds the final configuration (a combination of the default and its extension).
  195. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_configuration_yaml`.
  196. matrix_hookshot_configuration: "{{ matrix_hookshot_configuration_yaml|from_yaml|combine(matrix_hookshot_configuration_extension, recursive=True) }}"
  197. # Default registration template which covers the generic use case.
  198. # You can customize it by controlling the various variables inside it.
  199. #
  200. # For a more advanced customization, you can extend the default (see `matrixhookshot_registration_extension_yaml`)
  201. # or completely replace this variable with your own template.
  202. matrix_hookshot_registration_yaml: "{{ lookup('template', 'templates/registration.yml.j2') }}"
  203. matrix_hookshot_registration_extension_yaml: |
  204. # Your custom YAML registration goes here.
  205. # This registration extends the default starting registration (`matrix_hookshot_registration_yaml`).
  206. #
  207. # You can override individual variables from the default registration, or introduce new ones.
  208. #
  209. # If you need something more special, you can take full control by
  210. # completely redefining `matrix_hookshot_registration_yaml`.
  211. matrix_hookshot_registration_extension: "{{ matrix_hookshot_registration_extension_yaml|from_yaml if matrix_hookshot_registration_extension_yaml|from_yaml is mapping else {} }}"
  212. # Holds the final registration (a combination of the default and its extension).
  213. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_registration_yaml`.
  214. matrix_hookshot_registration: "{{ matrix_hookshot_registration_yaml|from_yaml|combine(matrix_hookshot_registration_extension, recursive=True) }}"