Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

154 líneas
7.7 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/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. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  17. matrix_hookshot_metrics_port: 9001
  18. matrix_hookshot_metrics_endpoint: "{{ matrix_hookshot_public_endpoint }}/metrics"
  19. # there is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  20. matrix_hookshot_webhook_port: 9000
  21. matrix_hookshot_webhook_endpoint: "{{ matrix_hookshot_public_endpoint }}/webhooks"
  22. # you need to create a GitHub app to enable this
  23. # https://half-shot.github.io/matrix-hookshot/setup/github.html
  24. matrix_hookshot_github_enabled: false
  25. matrix_hookshot_github_appid: ''
  26. matrix_hookshot_github_private_key: ''
  27. matrix_hookshot_github_secret: '' # "Webhook secret" on the GitHub App page
  28. matrix_hookshot_github_oauth_enabled: false
  29. matrix_hookshot_github_oauth_id: '' # "Client ID" on the GitHub App page
  30. matrix_hookshot_github_oauth_secret: '' # "Client Secret" on the GitHub App page
  31. matrix_hookshot_github_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/oauth"
  32. matrix_hookshot_github_oauth_uri: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_github_oauth_endpoint }}"
  33. matrix_hookshot_github_ignore_hooks: "{}"
  34. matrix_hookshot_github_command_prefix: '!gh'
  35. matrix_hookshot_github_show_issue_room_link: false
  36. matrix_hookshot_github_pr_diff: "{enabled: false, maxLines: 5}"
  37. matrix_hookshot_github_including_labels: ''
  38. matrix_hookshot_github_excluding_labels: ''
  39. matrix_hookshot_gitlab_enabled: true
  40. matrix_hookshot_gitlab_instances:
  41. gitlab.com:
  42. url: https://gitlab.com
  43. matrix_hookshot_gitlab_secret: ''
  44. matrix_hookshot_jira_enabled: false
  45. matrix_hookshot_jira_secret: ''
  46. matrix_hookshot_jira_oauth_id: ''
  47. matrix_hookshot_jira_oauth_secret: ''
  48. matrix_hookshot_jira_oauth_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/jira/oauth"
  49. matrix_hookshot_jira_oauth_uri: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_jira_oauth_endpoint }}"
  50. matrix_hookshot_generic_enabled: true
  51. matrix_hookshot_generic_endpoint: "{{ matrix_hookshot_webhook_endpoint }}"
  52. matrix_hookshot_generic_urlprefix: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_generic_endpoint }}"
  53. matrix_hookshot_generic_allow_js_transformation_functions: false
  54. matrix_hookshot_generic_user_id_prefix: 'webhooks_'
  55. matrix_hookshot_figma_enabled: false
  56. matrix_hookshot_figma_endpoint: "{{ matrix_hookshot_webhook_endpoint }}/figma/webhook"
  57. matrix_hookshot_figma_publicUrl: "{{ matrix_server_fqn_matrix }}{{ matrix_hookshot_figma_endpoint }}"
  58. # to bridge figma webhooks, you need to configure one of multiple instances like this:
  59. # matrix_hookshot_figma_instances:
  60. # your-instance:
  61. # teamId: your-team-id
  62. # accessToken: your-personal-access-token
  63. # passcode: your-webhook-passcode
  64. matrix_hookshot_provisioning_enabled: true
  65. # there is no need to edit ports. use matrix_hookshot_container_http_host_bind_ports below to expose ports instead.
  66. matrix_hookshot_provisioning_port: 9002
  67. matrix_hookshot_provisioning_secret: ''
  68. matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}/v1"
  69. matrix_hookshot_bot_displayname: Hookshot Bot
  70. matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'
  71. # A list of extra arguments to pass to the container
  72. matrix_hookshot_container_extra_arguments: []
  73. # List of systemd services that service depends on.
  74. matrix_hookshot_systemd_required_services_list: ['docker.service']
  75. # List of systemd services that service wants
  76. matrix_hookshot_systemd_wanted_services_list: []
  77. # List of ports to bind to the host to expose them directly.
  78. # Ports will automatically be bound to localhost if matrix_nginx_proxy_enabled is false.
  79. # Setting this variable will override that behaviour in either case.
  80. # Supply docker port bind arguments in a list like this:
  81. #
  82. # matrix_hookshot_container_http_host_bind_ports:
  83. # - "127.0.0.1:9999:{{ matrix_hookshot_metrics_port }}"
  84. #
  85. # Above example will bind the metrics port in the container to port 9999 on localhost.
  86. matrix_hookshot_container_http_host_bind_ports: []
  87. matrix_hookshot_appservice_token: ''
  88. matrix_hookshot_homeserver_token: ''
  89. # Default configuration template which covers the generic use case.
  90. # You can customize it by controlling the various variables inside it.
  91. #
  92. # For a more advanced customization, you can extend the default (see `matrixhookshot_configuration_extension_yaml`)
  93. # or completely replace this variable with your own template.
  94. matrix_hookshot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  95. matrix_hookshot_configuration_extension_yaml: |
  96. # Your custom YAML configuration goes here.
  97. # This configuration extends the default starting configuration (`matrix_hookshot_configuration_yaml`).
  98. #
  99. # You can override individual variables from the default configuration, or introduce new ones.
  100. #
  101. # If you need something more special, you can take full control by
  102. # completely redefining `matrix_hookshot_configuration_yaml`.
  103. matrix_hookshot_configuration_extension: "{{ matrix_hookshot_configuration_extension_yaml|from_yaml if matrix_hookshot_configuration_extension_yaml|from_yaml is mapping else {} }}"
  104. # Holds the final configuration (a combination of the default and its extension).
  105. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_configuration_yaml`.
  106. matrix_hookshot_configuration: "{{ matrix_hookshot_configuration_yaml|from_yaml|combine(matrix_hookshot_configuration_extension, recursive=True) }}"
  107. # Default registration template which covers the generic use case.
  108. # You can customize it by controlling the various variables inside it.
  109. #
  110. # For a more advanced customization, you can extend the default (see `matrixhookshot_registration_extension_yaml`)
  111. # or completely replace this variable with your own template.
  112. matrix_hookshot_registration_yaml: "{{ lookup('template', 'templates/registration.yml.j2') }}"
  113. matrix_hookshot_registration_extension_yaml: |
  114. # Your custom YAML registration goes here.
  115. # This registration extends the default starting registration (`matrix_hookshot_registration_yaml`).
  116. #
  117. # You can override individual variables from the default registration, or introduce new ones.
  118. #
  119. # If you need something more special, you can take full control by
  120. # completely redefining `matrix_hookshot_registration_yaml`.
  121. matrix_hookshot_registration_extension: "{{ matrix_hookshot_registration_extension_yaml|from_yaml if matrix_hookshot_registration_extension_yaml|from_yaml is mapping else {} }}"
  122. # Holds the final registration (a combination of the default and its extension).
  123. # You most likely don't need to touch this variable. Instead, see `matrix_hookshot_registration_yaml`.
  124. matrix_hookshot_registration: "{{ matrix_hookshot_registration_yaml|from_yaml|combine(matrix_hookshot_registration_extension, recursive=True) }}"