Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

266 lignes
13 KiB

  1. ---
  2. # A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
  3. # Project source code URL: 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: 2.4.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. # 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_auth_id: ''
  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_webhook_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_defaultOptions_ignoreHooks: {} # noqa var-naming
  57. matrix_hookshot_github_defaultOptions_commandPrefix: '!gh' # noqa var-naming
  58. matrix_hookshot_github_defaultOptions_showIssueRoomLink: false # noqa var-naming
  59. matrix_hookshot_github_defaultOptions_prDiff: # noqa var-naming
  60. enabled: false
  61. maxLines: 5
  62. matrix_hookshot_github_defaultOptions_includingLabels: '' # noqa var-naming
  63. matrix_hookshot_github_defaultOptions_excludingLabels: '' # noqa var-naming
  64. matrix_hookshot_github_defaultOptions_hotlinkIssues_prefix: "#" # noqa var-naming
  65. matrix_hookshot_gitlab_enabled: true
  66. # Optionally add your instances, e.g.
  67. # matrix_hookshot_gitlab_instances:
  68. # gitlab.com:
  69. # url: https://gitlab.com
  70. # mygitlab:
  71. # url: https://gitlab.example.org
  72. matrix_hookshot_gitlab_instances:
  73. gitlab.com:
  74. url: https://gitlab.com
  75. # This will be the "Secret token" you have to enter into all GitLab instances for authentication
  76. matrix_hookshot_gitlab_webhook_secret: ''
  77. matrix_hookshot_figma_enabled: false
  78. # Default value of matrix_hookshot_figma_endpoint: "/hookshot/webhooks/figma/webhook"
  79. matrix_hookshot_figma_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/figma/webhook"
  80. matrix_hookshot_figma_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_figma_endpoint }}" # noqa var-naming
  81. # To bridge figma webhooks, you need to configure one of multiple instances like this:
  82. # matrix_hookshot_figma_instances:
  83. # your-instance:
  84. # teamId: your-team-id
  85. # accessToken: your-personal-access-token
  86. # passcode: your-webhook-passcode
  87. matrix_hookshot_figma_instances: {}
  88. matrix_hookshot_jira_enabled: false
  89. # Get the these values from https://matrix-org.github.io/matrix-hookshot/setup/jira.html#jira-oauth
  90. matrix_hookshot_jira_webhook_secret: ''
  91. matrix_hookshot_jira_oauth_enabled: false
  92. matrix_hookshot_jira_oauth_client_id: ''
  93. matrix_hookshot_jira_oauth_client_secret: ''
  94. # Default value of matrix_hookshot_jira_oauth_endpoint: "/hookshot/webhooks/jira/oauth"
  95. matrix_hookshot_jira_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/jira/oauth"
  96. matrix_hookshot_jira_oauth_redirect_uri: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_jira_oauth_endpoint }}"
  97. # No need to change these
  98. matrix_hookshot_generic_enabled: true
  99. # Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks"
  100. matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
  101. # urlprefix gets updated with protocol & port in group_vars/matrix_servers
  102. matrix_hookshot_generic_urlPrefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_generic_endpoint }}"
  103. matrix_hookshot_generic_allowJsTransformationFunctions: false
  104. # If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap
  105. matrix_hookshot_generic_userIdPrefix: '_webhooks_'
  106. matrix_hookshot_feeds_enabled: true
  107. matrix_hookshot_feeds_pollIntervalSeconds: 600 # noqa var-naming
  108. matrix_hookshot_feeds_pollTimeoutSeconds: 10 # noqa var-naming
  109. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  110. matrix_hookshot_provisioning_port: 9002
  111. matrix_hookshot_provisioning_secret: ''
  112. # Provisioning will be automatically enabled if dimension is enabled and you have provided a provisioning secret, unless you override it
  113. matrix_hookshot_provisioning_enabled: false
  114. matrix_hookshot_provisioning_internal: "/v1"
  115. matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_provisioning_internal }}"
  116. matrix_hookshot_widgets_enabled: true
  117. matrix_hookshot_widgets_port: 9003
  118. matrix_hookshot_widgets_addToAdminRooms: false # default off as it is a beta feature # noqa var-naming
  119. matrix_hookshot_widgets_roomSetupWidget_enabled: true # noqa var-naming
  120. matrix_hookshot_widgets_roomSetupWidget_addOnInvite: false # noqa var-naming
  121. # `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.
  122. # matrix_hookshot_widgets_disallowedIpRanges:
  123. # - 127.0.0.0/8
  124. # - 10.0.0.0/8
  125. # - 172.16.0.0/12
  126. # - 192.168.0.0/16
  127. # - 100.64.0.0/10
  128. # - 192.0.0.0/24
  129. # - 169.254.0.0/16
  130. # - 192.88.99.0/24
  131. # - 198.18.0.0/15
  132. # - 192.0.2.0/24
  133. # - 198.51.100.0/24
  134. # - 203.0.113.0/24
  135. # - 224.0.0.0/4
  136. # - ::1/128
  137. # - fe80::/10
  138. # - fc00::/7
  139. # - 2001:db8::/32
  140. # - ff00::/8
  141. # - fec0::/10
  142. matrix_hookshot_widgets_disallowedIpRanges: '' # noqa var-naming
  143. matrix_hookshot_widgets_internal: "/widgetapi"
  144. # Default value of matrix_hookshot_widgets_endpoint: "/hookshot/widgetapi"
  145. matrix_hookshot_widgets_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_widgets_internal }}"
  146. matrix_hookshot_widgets_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_widgets_endpoint }}/v1/static" # noqa var-naming
  147. matrix_hookshot_widgets_branding_widgetTitle: "Hookshot Configuration" # noqa var-naming
  148. # You can configure access to the bridge as documented here https://matrix-org.github.io/matrix-hookshot/setup.html#permissions
  149. # When empty, the default permissions are applied.
  150. # Example:
  151. # matrix_hookshot_permissions:
  152. # - actor: *
  153. # services:
  154. # - service: *
  155. # level: commands
  156. # - actor: example.com
  157. # services:
  158. # - service: "*"
  159. # level: admin
  160. matrix_hookshot_permissions: []
  161. matrix_hookshot_bot_displayname: Hookshot Bot
  162. matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'
  163. # A list of extra arguments to pass to the container
  164. matrix_hookshot_container_extra_arguments: []
  165. # List of systemd services that service depends on.
  166. matrix_hookshot_systemd_required_services_list: ['docker.service']
  167. # List of systemd services that service wants
  168. matrix_hookshot_systemd_wanted_services_list: []
  169. # List of ports to bind to the host to expose them directly.
  170. # Ports will automatically be bound to localhost if matrix_nginx_proxy_enabled is false.
  171. # Setting this variable will override that behaviour in either case.
  172. # Supply docker port bind arguments in a list like this:
  173. #
  174. # matrix_hookshot_container_http_host_bind_ports:
  175. # - "127.0.0.1:9999:{{ matrix_hookshot_metrics_port }}"
  176. #
  177. # Above example will bind the metrics port in the container to port 9999 on localhost.
  178. matrix_hookshot_container_http_host_bind_ports: []
  179. # These tokens will be set automatically
  180. matrix_hookshot_appservice_token: ''
  181. matrix_hookshot_homeserver_token: ''
  182. # Default configuration template which covers the generic use case.
  183. # You can customize it by controlling the various variables inside it.
  184. #
  185. # For a more advanced customization, you can extend the default (see `matrixhookshot_configuration_extension_yaml`)
  186. # or completely replace this variable with your own template.
  187. matrix_hookshot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  188. matrix_hookshot_configuration_extension_yaml: |
  189. # Your custom YAML configuration goes here.
  190. # This configuration extends the default starting configuration (`matrix_hookshot_configuration_yaml`).
  191. #
  192. # You can override individual variables from the default configuration, or introduce new ones.
  193. #
  194. # If you need something more special, you can take full control by
  195. # completely redefining `matrix_hookshot_configuration_yaml`.
  196. matrix_hookshot_configuration_extension: "{{ matrix_hookshot_configuration_extension_yaml | from_yaml if matrix_hookshot_configuration_extension_yaml | from_yaml is mapping else {} }}"
  197. # Holds the final configuration (a combination of the default and its extension).
  198. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_configuration_yaml`.
  199. matrix_hookshot_configuration: "{{ matrix_hookshot_configuration_yaml | from_yaml | combine(matrix_hookshot_configuration_extension, recursive=True) }}"
  200. # Default registration template which covers the generic use case.
  201. # You can customize it by controlling the various variables inside it.
  202. #
  203. # For a more advanced customization, you can extend the default (see `matrixhookshot_registration_extension_yaml`)
  204. # or completely replace this variable with your own template.
  205. matrix_hookshot_registration_yaml: "{{ lookup('template', 'templates/registration.yml.j2') }}"
  206. matrix_hookshot_registration_extension_yaml: |
  207. # Your custom YAML registration goes here.
  208. # This registration extends the default starting registration (`matrix_hookshot_registration_yaml`).
  209. #
  210. # You can override individual variables from the default registration, or introduce new ones.
  211. #
  212. # If you need something more special, you can take full control by
  213. # completely redefining `matrix_hookshot_registration_yaml`.
  214. matrix_hookshot_registration_extension: "{{ matrix_hookshot_registration_extension_yaml | from_yaml if matrix_hookshot_registration_extension_yaml | from_yaml is mapping else {} }}"
  215. # Holds the final registration (a combination of the default and its extension).
  216. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_registration_yaml`.
  217. matrix_hookshot_registration: "{{ matrix_hookshot_registration_yaml | from_yaml | combine(matrix_hookshot_registration_extension, recursive=True) }}"