Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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