Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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