Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

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