Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

128 lines
4.3 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_show_issue_room_link }}
  37. prDiff: {{ matrix_hookshot_github_pr_diff }}
  38. includingLabels:{{ matrix_hookshot_github_including_labels }}
  39. excludingLabels: {{ matrix_hookshot_github_excluding_labels }}
  40. {% endif %}
  41. {% if matrix_hookshot_gitlab_enabled %}
  42. gitlab:
  43. # (Optional) Configure this to enable GitLab support
  44. #
  45. instances:
  46. {{ matrix_hookshot_gitlab_instances }}
  47. webhook:
  48. secret: {{ matrix_hookshot_gitlab_secret|to_json }}
  49. {% endif %}
  50. {% if matrix_hookshot_jira_enabled %}
  51. jira:
  52. # (Optional) Configure this to enable Jira support
  53. #
  54. webhook:
  55. secret: {{ matrix_hookshot_jira_secret|to_json }}
  56. {% if matrix_hookshot_jira_oauth_enabled %}
  57. oauth:
  58. client_id: {{ matrix_hookshot_jira_oauth_id|to_json }}
  59. client_secret: {{ matrix_hookshot_jira_oauth_secret|to_json }}
  60. redirect_uri: {{ matrix_hookshot_jira_oauth_uri }}
  61. {% endif %}
  62. {% endif %}
  63. {% if matrix_hookshot_generic_enabled %}
  64. generic:
  65. # (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
  66. #
  67. enabled: {{ matrix_hookshot_generic_enabled }}
  68. urlPrefix: {{ matrix_hookshot_generic_urlprefix }}
  69. allowJsTransformationFunctions: {{ matrix_hookshot_generic_allow_js_transformation_functions }}
  70. userIdPrefix: {{ matrix_hookshot_generic_user_id_prefix|to_json }}
  71. {% endif %}
  72. {% if matrix_hookshot_figma_enabled %}
  73. figma:
  74. # (Optional) Configure this to enable Figma support
  75. #
  76. publicUrl: {{ matrix_hookshot_figma_publicUrl }}
  77. instances: {{ matrix_hookshot_figma_instances }}
  78. {% endif %}
  79. {% if matrix_hookshot_provisioning_enabled %}
  80. provisioning:
  81. # (Optional) Provisioning API for integration managers
  82. #
  83. secret: {{ matrix_hookshot_provisioning_secret|to_json }}
  84. {% endif %}
  85. passFile:
  86. # A passkey used to encrypt tokens stored inside the bridge.
  87. # Run openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096 to generate
  88. #
  89. /data/passkey.pem
  90. bot:
  91. # (Optional) Define profile information for the bot user
  92. #
  93. displayname: {{ matrix_hookshot_bot_displayname }}
  94. avatar: {{ matrix_hookshot_bot_avatar }}
  95. metrics:
  96. # (Optional) Prometheus metrics support
  97. #
  98. enabled: {{ matrix_hookshot_metrics_enabled }}
  99. logging:
  100. # (Optional) Logging settings. You can have a severity debug,info,warn,error
  101. #
  102. level: info
  103. {% if matrix_hookshot_permissions %}
  104. permissions: {{ matrix_hookshot_permissions }}
  105. {% endif %}
  106. listeners:
  107. # (Optional) HTTP Listener configuration.
  108. # Bind resource endpoints to ports and addresses.
  109. # 'resources' may be any of webhooks, widgets, metrics, provisioning, appservice
  110. #
  111. {# always enabled since all services need it #}
  112. - port: {{ matrix_hookshot_webhook_port }}
  113. bindAddress: 0.0.0.0
  114. resources:
  115. - webhooks
  116. {% if matrix_hookshot_metrics_enabled %}
  117. - port: {{ matrix_hookshot_metrics_port }}
  118. bindAddress: 0.0.0.0
  119. resources:
  120. - metrics
  121. {% endif %}
  122. {% if matrix_hookshot_provisioning_enabled %}
  123. - port: {{ matrix_hookshot_provisioning_port }}
  124. bindAddress: 0.0.0.0
  125. resources:
  126. - provisioning
  127. {% endif %}