Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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