Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

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