Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

171 line
6.4 KiB

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