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

160 строки
5.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_appid }}
  18. privateKeyFile: /data/{{ matrix_hookshot_github_private_key_file }}
  19. webhook:
  20. # Webhook settings for the GitHub app.
  21. #
  22. secret: {{ matrix_hookshot_github_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_id }}
  28. client_secret: {{ matrix_hookshot_github_oauth_secret|to_json }}
  29. redirect_uri: {{ matrix_hookshot_github_oauth_uri }}
  30. {% endif %}
  31. defaultOptions:
  32. # (Optional) Default options for GitHub connections.
  33. #
  34. ignoreHooks: {{ matrix_hookshot_github_ignore_hooks }}
  35. commandPrefix: "{{ matrix_hookshot_github_command_prefix }}"
  36. showIssueRoomLink: {{ matrix_hookshot_github_showIssueRoomLink }}
  37. prDiff: {{ matrix_hookshot_github_pr_diff }}
  38. includingLabels:{{ matrix_hookshot_github_including_labels }}
  39. excludingLabels: {{ matrix_hookshot_github_excluding_labels }}
  40. hotlinkIssues:
  41. prefix: "{{ matrix_hookshot_github_hotlink_prefix }}"
  42. {% endif %}
  43. {% if matrix_hookshot_gitlab_enabled %}
  44. gitlab:
  45. # (Optional) Configure this to enable GitLab support
  46. #
  47. instances:
  48. {{ matrix_hookshot_gitlab_instances }}
  49. webhook:
  50. secret: {{ matrix_hookshot_gitlab_secret|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 }}
  57. instances: {{ matrix_hookshot_figma_instances }}
  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_secret|to_json }}
  65. {% if matrix_hookshot_jira_oauth_enabled %}
  66. oauth:
  67. client_id: {{ matrix_hookshot_jira_oauth_id|to_json }}
  68. client_secret: {{ matrix_hookshot_jira_oauth_secret|to_json }}
  69. redirect_uri: {{ matrix_hookshot_jira_oauth_uri }}
  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 }}
  77. urlPrefix: {{ matrix_hookshot_generic_urlprefix }}
  78. allowJsTransformationFunctions: {{ matrix_hookshot_generic_allow_js_transformation_functions }}
  79. userIdPrefix: {{ matrix_hookshot_generic_user_id_prefix|to_json }}
  80. {% endif %}
  81. {% if matrix_hookshot_feeds_enabled %}
  82. feeds:
  83. # (Optional) Configure this to enable RSS/Atom feed support
  84. #
  85. enabled: {{ matrix_hookshot_feeds_enabled | to_json }}
  86. pollIntervalSeconds: {{ matrix_hookshot_feeds_pollIntervalSeconds | to_json }}
  87. pollTimeoutSeconds: {{ matrix_hookshot_feeds_pollTimeoutSeconds | to_json }}
  88. {% endif %}
  89. {% if matrix_hookshot_provisioning_enabled %}
  90. provisioning:
  91. # (Optional) Provisioning API for integration managers
  92. #
  93. secret: {{ matrix_hookshot_provisioning_secret|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 }}
  104. avatar: {{ matrix_hookshot_bot_avatar }}
  105. metrics:
  106. # (Optional) Prometheus metrics support
  107. #
  108. enabled: {{ matrix_hookshot_metrics_enabled }}
  109. logging:
  110. # (Optional) Logging settings. You can have a severity debug,info,warn,error
  111. #
  112. level: warn
  113. {% if matrix_hookshot_widgets_enabled %}
  114. widgets:
  115. # (Optional) EXPERIMENTAL support for complimentary widgets
  116. #
  117. addToAdminRooms: {{ matrix_hookshot_widgets_addToAdminRooms }}
  118. {% if matrix_hookshot_widgets_roomSetupWidget_enabled %}
  119. roomSetupWidget:
  120. addOnInvite: {{ matrix_hookshot_widgets_roomSetupWidget_addOnInvite }}
  121. {% endif %}
  122. {% if not matrix_hookshot_widgets_disallowedIpRanges is in [None, ''] %}
  123. disallowedIpRanges: {{ matrix_hookshot_widgets_disallowedIpRanges }}
  124. {% endif %}
  125. publicUrl: {{ matrix_hookshot_widgets_publicUrl }}
  126. branding:
  127. widgetTitle: {{ matrix_hookshot_widgets_branding_widgetTitle }}
  128. {% endif %}
  129. {% if matrix_hookshot_permissions %}
  130. permissions: {{ matrix_hookshot_permissions }}
  131. {% endif %}
  132. listeners:
  133. # (Optional) HTTP Listener configuration.
  134. # Bind resource endpoints to ports and addresses.
  135. # 'resources' may be any of webhooks, widgets, metrics, provisioning, appservice
  136. #
  137. {# always enabled since all services need it #}
  138. - port: {{ matrix_hookshot_webhook_port }}
  139. bindAddress: 0.0.0.0
  140. resources:
  141. - webhooks
  142. {% if matrix_hookshot_metrics_enabled %}
  143. - port: {{ matrix_hookshot_metrics_port }}
  144. bindAddress: 0.0.0.0
  145. resources:
  146. - metrics
  147. {% endif %}
  148. {% if matrix_hookshot_provisioning_enabled %}
  149. - port: {{ matrix_hookshot_provisioning_port }}
  150. bindAddress: 0.0.0.0
  151. resources:
  152. - provisioning
  153. {% endif %}
  154. {% if matrix_hookshot_widgets_enabled %}
  155. - port: {{ matrix_hookshot_widgets_port }}
  156. bindAddress: 0.0.0.0
  157. resources:
  158. - widgets
  159. {% endif %}