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 lines
6.5 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. publicUrl: {{ matrix_hookshot_gitlab_webhook_publicUrl | to_json }}
  51. {% endif %}
  52. {% if matrix_hookshot_figma_enabled %}
  53. figma:
  54. # (Optional) Configure this to enable Figma support
  55. #
  56. publicUrl: {{ matrix_hookshot_figma_publicUrl | to_json }}
  57. instances: {{ matrix_hookshot_figma_instances | to_json }}
  58. {% endif %}
  59. {% if matrix_hookshot_jira_enabled %}
  60. jira:
  61. # (Optional) Configure this to enable Jira support
  62. #
  63. webhook:
  64. secret: {{ matrix_hookshot_jira_webhook_secret | to_json }}
  65. {% if matrix_hookshot_jira_oauth_enabled %}
  66. oauth:
  67. client_id: {{ matrix_hookshot_jira_oauth_client_id | to_json }}
  68. client_secret: {{ matrix_hookshot_jira_oauth_client_secret | to_json }}
  69. redirect_uri: {{ matrix_hookshot_jira_oauth_redirect_uri | to_json }}
  70. {% endif %}
  71. {% endif %}
  72. {% if matrix_hookshot_generic_enabled %}
  73. generic:
  74. # (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
  75. #
  76. enabled: {{ matrix_hookshot_generic_enabled | to_json }}
  77. outbound: {{ matrix_hookshot_generic_outbound | to_json }}
  78. enableHttpGet: {{ matrix_hookshot_generic_enableHttpGet | to_json }}
  79. urlPrefix: {{ matrix_hookshot_generic_urlPrefix | to_json }}
  80. userIdPrefix: {{ matrix_hookshot_generic_userIdPrefix | to_json }}
  81. allowJsTransformationFunctions: {{ matrix_hookshot_generic_allowJsTransformationFunctions | to_json }}
  82. waitForComplete: {{ matrix_hookshot_generic_waitForComplete | to_json }}
  83. {% endif %}
  84. {% if matrix_hookshot_feeds_enabled %}
  85. feeds:
  86. # (Optional) Configure this to enable RSS/Atom feed support
  87. #
  88. enabled: {{ matrix_hookshot_feeds_enabled | to_json }}
  89. pollIntervalSeconds: {{ matrix_hookshot_feeds_pollIntervalSeconds | to_json }}
  90. pollTimeoutSeconds: {{ matrix_hookshot_feeds_pollTimeoutSeconds | to_json }}
  91. {% endif %}
  92. {% if matrix_hookshot_provisioning_enabled %}
  93. provisioning:
  94. # (Optional) Provisioning API for integration managers
  95. #
  96. secret: {{ matrix_hookshot_provisioning_secret | to_json }}
  97. {% endif %}
  98. passFile:
  99. # A passkey used to encrypt tokens stored inside the bridge.
  100. # Run openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096 to generate
  101. #
  102. /data/passkey.pem
  103. bot:
  104. # (Optional) Define profile information for the bot user
  105. #
  106. displayname: {{ matrix_hookshot_bot_displayname | to_json }}
  107. avatar: {{ matrix_hookshot_bot_avatar | to_json }}
  108. metrics:
  109. # (Optional) Prometheus metrics support
  110. #
  111. enabled: {{ matrix_hookshot_metrics_enabled | to_json }}
  112. {% if matrix_hookshot_cache_redisUri %}
  113. cache:
  114. redisUri: {{ matrix_hookshot_cache_redisUri | to_json }}
  115. {% endif %}
  116. {% if matrix_hookshot_encryption_enabled %}
  117. encryption:
  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 %}