Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

290 Zeilen
15 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_ident: matrix-hookshot
  6. matrix_hookshot_container_image_self_build: false
  7. matrix_hookshot_container_image_self_build_repo: "https://github.com/matrix-org/matrix-hookshot.git"
  8. matrix_hookshot_container_image_self_build_branch: "{{ 'main' if matrix_hookshot_version == 'latest' else matrix_hookshot_version }}"
  9. # Specifies additional networks for the Hookshot container to connect with
  10. matrix_hookshot_container_additional_networks: "{{ matrix_hookshot_container_additional_networks_auto + matrix_hookshot_container_additional_networks_custom }}"
  11. matrix_hookshot_container_additional_networks_auto: []
  12. matrix_hookshot_container_additional_networks_custom: []
  13. # renovate: datasource=docker depName=halfshot/matrix-hookshot
  14. matrix_hookshot_version: 5.1.2
  15. matrix_hookshot_docker_image: "{{ matrix_hookshot_docker_image_name_prefix }}halfshot/matrix-hookshot:{{ matrix_hookshot_version }}"
  16. matrix_hookshot_docker_image_name_prefix: "{{ 'localhost/' if matrix_hookshot_container_image_self_build else matrix_container_global_registry_prefix }}"
  17. matrix_hookshot_docker_image_force_pull: "{{ matrix_hookshot_docker_image.endswith(':latest') }}"
  18. matrix_hookshot_base_path: "{{ matrix_base_data_path }}/hookshot"
  19. matrix_hookshot_docker_src_files_path: "{{ matrix_hookshot_base_path }}/docker-src"
  20. matrix_hookshot_homeserver_address: "{{ matrix_homeserver_container_url }}"
  21. matrix_hookshot_container_url: 'matrix-hookshot'
  22. matrix_hookshot_public_endpoint: /hookshot
  23. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  24. matrix_hookshot_appservice_port: 9993
  25. matrix_hookshot_appservice_endpoint: "{{ matrix_hookshot_public_endpoint }}/_matrix/app"
  26. # The variables below control the queue parameters and may optionally be pointed to a Redis instance.
  27. # These are required when experimental encryption is enabled (`matrix_hookshot_experimental_encryption_enabled`).
  28. matrix_hookshot_queue_host: ''
  29. matrix_hookshot_queue_port: 6739
  30. # Controls whether the experimental end-to-bridge encryption support is enabled.
  31. # This requires that:
  32. # - support to also be enabled in the homeserver, see the documentation of Hookshot.
  33. # - Hookshot to be pointed at a Redis instance via the `matrix_hookshot_queue_*` variables.
  34. matrix_hookshot_experimental_encryption_enabled: false
  35. # Controls whether metrics are enabled in the bridge configuration.
  36. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  37. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_hookshot_metrics_proxying_enabled`.
  38. matrix_hookshot_metrics_enabled: false
  39. # Controls whether Hookshot metrics should be proxied (exposed) on `matrix.DOMAIN/metrics/hookshot`.
  40. # This will only work take effect if `matrix_nginx_proxy_proxy_matrix_metrics_enabled: true`.
  41. # See the `matrix-nginx-proxy` role for details about enabling `matrix_nginx_proxy_proxy_matrix_metrics_enabled`.
  42. matrix_hookshot_metrics_proxying_enabled: false
  43. # There is no need to edit ports.
  44. # Read the documentation to learn about using Hookshot metrics with external Prometheus
  45. # If you still want something different, use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  46. matrix_hookshot_metrics_port: 9001
  47. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  48. matrix_hookshot_webhook_port: 9000
  49. matrix_hookshot_webhook_endpoint: "{{ matrix_hookshot_public_endpoint }}/webhooks"
  50. # You need to create a GitHub app to enable this and fill in the empty variables below
  51. # https://matrix-org.github.io/matrix-hookshot/setup/github.html
  52. matrix_hookshot_github_enabled: false
  53. matrix_hookshot_github_auth_id: ''
  54. # Set this variable to the contents of the generated and downloaded GitHub private key:
  55. # matrix_hookshot_github_private_key: |
  56. # -----BEGIN RSA PRIVATE KEY-----
  57. # 0123456789ABCDEF...
  58. # -----END RSA PRIVATE KEY-----
  59. # Alternatively, leave it empty and do it manually or use matrix-aux instead, see docs/matrix-bridge-hookshot.md for info.
  60. matrix_hookshot_github_private_key: ''
  61. matrix_hookshot_github_private_key_file: 'private-key.pem'
  62. matrix_hookshot_github_webhook_secret: '' # "Webhook secret" on the GitHub App page
  63. matrix_hookshot_github_oauth_enabled: false
  64. # You need to configure oauth settings only when you have enabled oauth (optional)
  65. matrix_hookshot_github_oauth_client_id: '' # "Client ID" on the GitHub App page
  66. matrix_hookshot_github_oauth_client_secret: '' # "Client Secret" on the GitHub App page
  67. # Default value of matrix_hookshot_github_oauth_endpoint: "/hookshot/webhooks/oauth"
  68. matrix_hookshot_github_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/oauth"
  69. matrix_hookshot_github_oauth_redirect_uri: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_github_oauth_endpoint }}"
  70. # 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
  71. matrix_hookshot_github_defaultOptions_ignoreHooks: {} # noqa var-naming
  72. matrix_hookshot_github_defaultOptions_commandPrefix: '!gh' # noqa var-naming
  73. matrix_hookshot_github_defaultOptions_showIssueRoomLink: false # noqa var-naming
  74. matrix_hookshot_github_defaultOptions_prDiff: # noqa var-naming
  75. enabled: false
  76. maxLines: 5
  77. matrix_hookshot_github_defaultOptions_includingLabels: '' # noqa var-naming
  78. matrix_hookshot_github_defaultOptions_excludingLabels: '' # noqa var-naming
  79. matrix_hookshot_github_defaultOptions_hotlinkIssues_prefix: "#" # noqa var-naming
  80. matrix_hookshot_gitlab_enabled: true
  81. # Optionally add your instances, e.g.
  82. # matrix_hookshot_gitlab_instances:
  83. # gitlab.com:
  84. # url: https://gitlab.com
  85. # mygitlab:
  86. # url: https://gitlab.example.org
  87. matrix_hookshot_gitlab_instances:
  88. gitlab.com:
  89. url: https://gitlab.com
  90. # This will be the "Secret token" you have to enter into all GitLab instances for authentication
  91. matrix_hookshot_gitlab_webhook_secret: ''
  92. matrix_hookshot_figma_enabled: false
  93. # Default value of matrix_hookshot_figma_endpoint: "/hookshot/webhooks/figma/webhook"
  94. matrix_hookshot_figma_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/figma/webhook"
  95. matrix_hookshot_figma_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_figma_endpoint }}" # noqa var-naming
  96. # To bridge figma webhooks, you need to configure one of multiple instances like this:
  97. # matrix_hookshot_figma_instances:
  98. # your-instance:
  99. # teamId: your-team-id
  100. # accessToken: your-personal-access-token
  101. # passcode: your-webhook-passcode
  102. matrix_hookshot_figma_instances: {}
  103. matrix_hookshot_jira_enabled: false
  104. # Get the these values from https://matrix-org.github.io/matrix-hookshot/setup/jira.html#jira-oauth
  105. matrix_hookshot_jira_webhook_secret: ''
  106. matrix_hookshot_jira_oauth_enabled: false
  107. matrix_hookshot_jira_oauth_client_id: ''
  108. matrix_hookshot_jira_oauth_client_secret: ''
  109. # Default value of matrix_hookshot_jira_oauth_endpoint: "/hookshot/webhooks/jira/oauth"
  110. matrix_hookshot_jira_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/jira/oauth"
  111. matrix_hookshot_jira_oauth_redirect_uri: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_jira_oauth_endpoint }}"
  112. # No need to change these
  113. matrix_hookshot_generic_enabled: true
  114. matrix_hookshot_generic_enableHttpGet: false # noqa var-naming
  115. # Default value of matrix_hookshot_generic_endpoint: "/hookshot/webhooks"
  116. matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
  117. # urlprefix gets updated with protocol & port in group_vars/matrix_servers
  118. matrix_hookshot_generic_urlPrefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_generic_endpoint }}" # noqa var-naming
  119. # If you're also using matrix-appservice-webhooks, take care that these prefixes don't overlap
  120. matrix_hookshot_generic_userIdPrefix: '_webhooks_' # noqa var-naming
  121. matrix_hookshot_generic_allowJsTransformationFunctions: false # noqa var-naming
  122. matrix_hookshot_generic_waitForComplete: false # noqa var-naming
  123. matrix_hookshot_feeds_enabled: true
  124. matrix_hookshot_feeds_pollIntervalSeconds: 600 # noqa var-naming
  125. matrix_hookshot_feeds_pollTimeoutSeconds: 30 # noqa var-naming
  126. # There is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  127. matrix_hookshot_provisioning_port: 9002
  128. matrix_hookshot_provisioning_secret: ''
  129. # Provisioning will be automatically enabled if dimension is enabled and you have provided a provisioning secret, unless you override it
  130. matrix_hookshot_provisioning_enabled: false
  131. matrix_hookshot_provisioning_internal: "/v1"
  132. matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_provisioning_internal }}"
  133. # Valid logging levels are: debug, info, warn, error
  134. matrix_hookshot_logging_level: warn
  135. matrix_hookshot_widgets_enabled: true
  136. matrix_hookshot_widgets_port: 9003
  137. matrix_hookshot_widgets_addToAdminRooms: false # default off as it is a beta feature # noqa var-naming
  138. matrix_hookshot_widgets_roomSetupWidget_enabled: true # noqa var-naming
  139. matrix_hookshot_widgets_roomSetupWidget_addOnInvite: false # noqa var-naming
  140. # `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.
  141. # matrix_hookshot_widgets_disallowedIpRanges:
  142. # - 127.0.0.0/8
  143. # - 10.0.0.0/8
  144. # - 172.16.0.0/12
  145. # - 192.168.0.0/16
  146. # - 100.64.0.0/10
  147. # - 192.0.0.0/24
  148. # - 169.254.0.0/16
  149. # - 192.88.99.0/24
  150. # - 198.18.0.0/15
  151. # - 192.0.2.0/24
  152. # - 198.51.100.0/24
  153. # - 203.0.113.0/24
  154. # - 224.0.0.0/4
  155. # - ::1/128
  156. # - fe80::/10
  157. # - fc00::/7
  158. # - 2001:db8::/32
  159. # - ff00::/8
  160. # - fec0::/10
  161. matrix_hookshot_widgets_disallowedIpRanges: '' # noqa var-naming
  162. matrix_hookshot_widgets_internal: "/widgetapi"
  163. # Default value of matrix_hookshot_widgets_endpoint: "/hookshot/widgetapi"
  164. matrix_hookshot_widgets_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_widgets_internal }}"
  165. matrix_hookshot_widgets_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_widgets_endpoint }}/v1/static" # noqa var-naming
  166. matrix_hookshot_widgets_branding_widgetTitle: "Hookshot Configuration" # noqa var-naming
  167. # You can configure access to the bridge as documented here https://matrix-org.github.io/matrix-hookshot/setup.html#permissions
  168. # When empty, the default permissions are applied.
  169. # Example:
  170. # matrix_hookshot_permissions:
  171. # - actor: *
  172. # services:
  173. # - service: *
  174. # level: commands
  175. # - actor: example.com
  176. # services:
  177. # - service: "*"
  178. # level: admin
  179. matrix_hookshot_permissions: []
  180. matrix_hookshot_bot_displayname: Hookshot Bot
  181. matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'
  182. matrix_hookshot_container_network: "{{ matrix_docker_network }}"
  183. # A list of extra arguments to pass to the container
  184. matrix_hookshot_container_extra_arguments: []
  185. # List of systemd services that service depends on.
  186. matrix_hookshot_systemd_required_services_list: ['docker.service']
  187. # List of systemd services that service wants
  188. matrix_hookshot_systemd_wanted_services_list: []
  189. # List of ports to bind to the host to expose them directly.
  190. # Ports will automatically be bound to localhost if matrix_nginx_proxy_enabled is false.
  191. # Setting this variable will override that behaviour in either case.
  192. # Supply docker port bind arguments in a list like this:
  193. #
  194. # matrix_hookshot_container_http_host_bind_ports:
  195. # - "127.0.0.1:9999:{{ matrix_hookshot_metrics_port }}"
  196. #
  197. # Above example will bind the metrics port in the container to port 9999 on localhost.
  198. matrix_hookshot_container_http_host_bind_ports: []
  199. # These tokens will be set automatically
  200. matrix_hookshot_appservice_token: ''
  201. matrix_hookshot_homeserver_token: ''
  202. # Default configuration template which covers the generic use case.
  203. # You can customize it by controlling the various variables inside it.
  204. #
  205. # For a more advanced customization, you can extend the default (see `matrixhookshot_configuration_extension_yaml`)
  206. # or completely replace this variable with your own template.
  207. matrix_hookshot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  208. matrix_hookshot_configuration_extension_yaml: |
  209. # Your custom YAML configuration goes here.
  210. # This configuration extends the default starting configuration (`matrix_hookshot_configuration_yaml`).
  211. #
  212. # You can override individual variables from the default configuration, or introduce new ones.
  213. #
  214. # If you need something more special, you can take full control by
  215. # completely redefining `matrix_hookshot_configuration_yaml`.
  216. matrix_hookshot_configuration_extension: "{{ matrix_hookshot_configuration_extension_yaml | from_yaml if matrix_hookshot_configuration_extension_yaml | from_yaml is mapping else {} }}"
  217. # Holds the final configuration (a combination of the default and its extension).
  218. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_configuration_yaml`.
  219. matrix_hookshot_configuration: "{{ matrix_hookshot_configuration_yaml | from_yaml | combine(matrix_hookshot_configuration_extension, recursive=True) }}"
  220. # Default registration template which covers the generic use case.
  221. # You can customize it by controlling the various variables inside it.
  222. #
  223. # For a more advanced customization, you can extend the default (see `matrixhookshot_registration_extension_yaml`)
  224. # or completely replace this variable with your own template.
  225. matrix_hookshot_registration_yaml: "{{ lookup('template', 'templates/registration.yml.j2') }}"
  226. matrix_hookshot_registration_extension_yaml: |
  227. # Your custom YAML registration goes here.
  228. # This registration extends the default starting registration (`matrix_hookshot_registration_yaml`).
  229. #
  230. # You can override individual variables from the default registration, or introduce new ones.
  231. #
  232. # If you need something more special, you can take full control by
  233. # completely redefining `matrix_hookshot_registration_yaml`.
  234. matrix_hookshot_registration_extension: "{{ matrix_hookshot_registration_extension_yaml | from_yaml if matrix_hookshot_registration_extension_yaml | from_yaml is mapping else {} }}"
  235. # Holds the final registration (a combination of the default and its extension).
  236. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_registration_yaml`.
  237. matrix_hookshot_registration: "{{ matrix_hookshot_registration_yaml | from_yaml | combine(matrix_hookshot_registration_extension, recursive=True) }}"