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.
 
 

162 lines
6.3 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. sendExpiryNotice: {{ matrix_hookshot_generic_sendExpiryNotice | to_json }}
  84. requireExpiryTime: {{ matrix_hookshot_generic_requireExpiryTime | to_json }}
  85. maxExpiryTime: {{ matrix_hookshot_generic_maxExpiryTime | to_json }}
  86. {% endif %}
  87. {% if matrix_hookshot_feeds_enabled %}
  88. feeds:
  89. # (Optional) Configure this to enable RSS/Atom feed support
  90. #
  91. enabled: {{ matrix_hookshot_feeds_enabled | to_json }}
  92. pollIntervalSeconds: {{ matrix_hookshot_feeds_pollIntervalSeconds | to_json }}
  93. pollTimeoutSeconds: {{ matrix_hookshot_feeds_pollTimeoutSeconds | to_json }}
  94. {% endif %}
  95. passFile:
  96. # A passkey used to encrypt tokens stored inside the bridge.
  97. # Run openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096 to generate
  98. #
  99. /data/passkey.pem
  100. bot:
  101. # (Optional) Define profile information for the bot user
  102. #
  103. displayname: {{ matrix_hookshot_bot_displayname | to_json(ensure_ascii=False) }}
  104. avatar: {{ matrix_hookshot_bot_avatar | to_json }}
  105. metrics:
  106. # (Optional) Prometheus metrics support
  107. #
  108. enabled: {{ matrix_hookshot_metrics_enabled | to_json }}
  109. {% if matrix_hookshot_cache_redisUri %}
  110. cache:
  111. redisUri: {{ matrix_hookshot_cache_redisUri | to_json }}
  112. {% endif %}
  113. {% if matrix_hookshot_encryption_enabled %}
  114. encryption:
  115. storagePath: /data/encryption
  116. {% endif %}
  117. logging:
  118. # (Optional) Logging settings. You can have a severity debug,info,warn,error
  119. #
  120. level: {{ matrix_hookshot_logging_level | to_json }}
  121. {% if matrix_hookshot_widgets_enabled %}
  122. widgets:
  123. # (Optional) EXPERIMENTAL support for complimentary widgets
  124. #
  125. addToAdminRooms: {{ matrix_hookshot_widgets_addToAdminRooms | to_json }}
  126. {% if matrix_hookshot_widgets_roomSetupWidget_enabled %}
  127. roomSetupWidget:
  128. addOnInvite: {{ matrix_hookshot_widgets_roomSetupWidget_addOnInvite | to_json }}
  129. {% endif %}
  130. {% if not matrix_hookshot_widgets_disallowedIpRanges is in [None, ''] %}
  131. disallowedIpRanges: {{ matrix_hookshot_widgets_disallowedIpRanges | to_json }}
  132. {% endif %}
  133. publicUrl: {{ matrix_hookshot_widgets_publicUrl | to_json }}
  134. branding:
  135. widgetTitle: {{ matrix_hookshot_widgets_branding_widgetTitle | to_json }}
  136. {% endif %}
  137. {% if matrix_hookshot_permissions %}
  138. permissions: {{ matrix_hookshot_permissions | to_json }}
  139. {% endif %}
  140. listeners:
  141. # (Optional) HTTP Listener configuration.
  142. # Bind resource endpoints to ports and addresses.
  143. # 'resources' may be any of webhooks, widgets, metrics
  144. #
  145. {# always enabled since all services need it #}
  146. - port: {{ matrix_hookshot_webhook_port }}
  147. bindAddress: 0.0.0.0
  148. resources:
  149. - webhooks
  150. {% if matrix_hookshot_metrics_enabled %}
  151. - port: {{ matrix_hookshot_metrics_port }}
  152. bindAddress: 0.0.0.0
  153. resources:
  154. - metrics
  155. {% endif %}
  156. {% if matrix_hookshot_widgets_enabled %}
  157. - port: {{ matrix_hookshot_widgets_port }}
  158. bindAddress: 0.0.0.0
  159. resources:
  160. - widgets
  161. {% endif %}