Matrix Docker Ansible eploy
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

177 rindas
6.6 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. #jinja2: lstrip_blocks: "True"
  6. bridge:
  7. # Basic homeserver configuration
  8. #
  9. domain: {{ matrix_domain }}
  10. url: {{ matrix_hookshot_homeserver_address }}
  11. mediaUrl: {{ matrix_hookshot_homeserver_address }}
  12. port: {{ matrix_hookshot_appservice_port }}
  13. bindAddress: 0.0.0.0
  14. {% if matrix_hookshot_github_enabled %}
  15. github:
  16. # (Optional) Configure this to enable GitHub support
  17. #
  18. auth:
  19. # Authentication for the GitHub App.
  20. #
  21. id: {{ matrix_hookshot_github_auth_id | to_json }}
  22. privateKeyFile: /data/{{ matrix_hookshot_github_private_key_file }}
  23. webhook:
  24. # Webhook settings for the GitHub app.
  25. #
  26. secret: {{ matrix_hookshot_github_webhook_secret | to_json }}
  27. {% if matrix_hookshot_github_oauth_enabled %}
  28. oauth:
  29. # (Optional) Settings for allowing users to sign in via OAuth.
  30. #
  31. client_id: {{ matrix_hookshot_github_oauth_client_id | to_json }}
  32. client_secret: {{ matrix_hookshot_github_oauth_client_secret | to_json }}
  33. redirect_uri: {{ matrix_hookshot_github_oauth_redirect_uri | to_json }}
  34. {% endif %}
  35. defaultOptions:
  36. # (Optional) Default options for GitHub connections.
  37. #
  38. ignoreHooks: {{ matrix_hookshot_github_defaultOptions_ignoreHooks | to_json }}
  39. commandPrefix: {{ matrix_hookshot_github_defaultOptions_commandPrefix | to_json }}
  40. showIssueRoomLink: {{ matrix_hookshot_github_defaultOptions_showIssueRoomLink | to_json }}
  41. prDiff: {{ matrix_hookshot_github_defaultOptions_prDiff | to_json }}
  42. includingLabels: {{ matrix_hookshot_github_defaultOptions_includingLabels | to_json }}
  43. excludingLabels: {{ matrix_hookshot_github_defaultOptions_excludingLabels | to_json }}
  44. hotlinkIssues:
  45. prefix: {{ matrix_hookshot_github_defaultOptions_hotlinkIssues_prefix | to_json }}
  46. {% endif %}
  47. {% if matrix_hookshot_gitlab_enabled %}
  48. gitlab:
  49. # (Optional) Configure this to enable GitLab support
  50. #
  51. instances: {{ matrix_hookshot_gitlab_instances | to_json }}
  52. webhook:
  53. secret: {{ matrix_hookshot_gitlab_webhook_secret | to_json }}
  54. publicUrl: {{ matrix_hookshot_gitlab_webhook_publicUrl | to_json }}
  55. {% endif %}
  56. {% if matrix_hookshot_figma_enabled %}
  57. figma:
  58. # (Optional) Configure this to enable Figma support
  59. #
  60. publicUrl: {{ matrix_hookshot_figma_publicUrl | to_json }}
  61. instances: {{ matrix_hookshot_figma_instances | to_json }}
  62. {% endif %}
  63. {% if matrix_hookshot_jira_enabled %}
  64. jira:
  65. # (Optional) Configure this to enable Jira support
  66. #
  67. webhook:
  68. secret: {{ matrix_hookshot_jira_webhook_secret | to_json }}
  69. {% if matrix_hookshot_jira_oauth_enabled %}
  70. oauth:
  71. client_id: {{ matrix_hookshot_jira_oauth_client_id | to_json }}
  72. client_secret: {{ matrix_hookshot_jira_oauth_client_secret | to_json }}
  73. redirect_uri: {{ matrix_hookshot_jira_oauth_redirect_uri | to_json }}
  74. {% endif %}
  75. {% endif %}
  76. {% if matrix_hookshot_generic_enabled %}
  77. generic:
  78. # (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
  79. #
  80. enabled: {{ matrix_hookshot_generic_enabled | to_json }}
  81. outbound: {{ matrix_hookshot_generic_outbound | to_json }}
  82. enableHttpGet: {{ matrix_hookshot_generic_enableHttpGet | to_json }}
  83. urlPrefix: {{ matrix_hookshot_generic_urlPrefix | to_json }}
  84. userIdPrefix: {{ matrix_hookshot_generic_userIdPrefix | to_json }}
  85. allowJsTransformationFunctions: {{ matrix_hookshot_generic_allowJsTransformationFunctions | to_json }}
  86. waitForComplete: {{ matrix_hookshot_generic_waitForComplete | to_json }}
  87. {% endif %}
  88. {% if matrix_hookshot_feeds_enabled %}
  89. feeds:
  90. # (Optional) Configure this to enable RSS/Atom feed support
  91. #
  92. enabled: {{ matrix_hookshot_feeds_enabled | to_json }}
  93. pollIntervalSeconds: {{ matrix_hookshot_feeds_pollIntervalSeconds | to_json }}
  94. pollTimeoutSeconds: {{ matrix_hookshot_feeds_pollTimeoutSeconds | to_json }}
  95. {% endif %}
  96. {% if matrix_hookshot_provisioning_enabled %}
  97. provisioning:
  98. # (Optional) Provisioning API for integration managers
  99. #
  100. secret: {{ matrix_hookshot_provisioning_secret | to_json }}
  101. {% endif %}
  102. passFile:
  103. # A passkey used to encrypt tokens stored inside the bridge.
  104. # Run openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096 to generate
  105. #
  106. /data/passkey.pem
  107. bot:
  108. # (Optional) Define profile information for the bot user
  109. #
  110. displayname: {{ matrix_hookshot_bot_displayname | to_json }}
  111. avatar: {{ matrix_hookshot_bot_avatar | to_json }}
  112. metrics:
  113. # (Optional) Prometheus metrics support
  114. #
  115. enabled: {{ matrix_hookshot_metrics_enabled | to_json }}
  116. {% if matrix_hookshot_cache_redisUri %}
  117. cache:
  118. redisUri: {{ matrix_hookshot_cache_redisUri | to_json }}
  119. {% endif %}
  120. {% if matrix_hookshot_encryption_enabled %}
  121. encryption:
  122. storagePath: /data/encryption
  123. {% endif %}
  124. logging:
  125. # (Optional) Logging settings. You can have a severity debug,info,warn,error
  126. #
  127. level: {{ matrix_hookshot_logging_level | to_json }}
  128. {% if matrix_hookshot_widgets_enabled %}
  129. widgets:
  130. # (Optional) EXPERIMENTAL support for complimentary widgets
  131. #
  132. addToAdminRooms: {{ matrix_hookshot_widgets_addToAdminRooms | to_json }}
  133. {% if matrix_hookshot_widgets_roomSetupWidget_enabled %}
  134. roomSetupWidget:
  135. addOnInvite: {{ matrix_hookshot_widgets_roomSetupWidget_addOnInvite | to_json }}
  136. {% endif %}
  137. {% if not matrix_hookshot_widgets_disallowedIpRanges is in [None, ''] %}
  138. disallowedIpRanges: {{ matrix_hookshot_widgets_disallowedIpRanges | to_json }}
  139. {% endif %}
  140. publicUrl: {{ matrix_hookshot_widgets_publicUrl | to_json }}
  141. branding:
  142. widgetTitle: {{ matrix_hookshot_widgets_branding_widgetTitle | to_json }}
  143. {% endif %}
  144. {% if matrix_hookshot_permissions %}
  145. permissions: {{ matrix_hookshot_permissions | to_json }}
  146. {% endif %}
  147. listeners:
  148. # (Optional) HTTP Listener configuration.
  149. # Bind resource endpoints to ports and addresses.
  150. # 'resources' may be any of webhooks, widgets, metrics, provisioning, appservice
  151. #
  152. {# always enabled since all services need it #}
  153. - port: {{ matrix_hookshot_webhook_port }}
  154. bindAddress: 0.0.0.0
  155. resources:
  156. - webhooks
  157. {% if matrix_hookshot_metrics_enabled %}
  158. - port: {{ matrix_hookshot_metrics_port }}
  159. bindAddress: 0.0.0.0
  160. resources:
  161. - metrics
  162. {% endif %}
  163. {% if matrix_hookshot_provisioning_enabled %}
  164. - port: {{ matrix_hookshot_provisioning_port }}
  165. bindAddress: 0.0.0.0
  166. resources:
  167. - provisioning
  168. {% endif %}
  169. {% if matrix_hookshot_widgets_enabled %}
  170. - port: {{ matrix_hookshot_widgets_port }}
  171. bindAddress: 0.0.0.0
  172. resources:
  173. - widgets
  174. {% endif %}