Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

201 linhas
9.9 KiB

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