Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

121 行
4.0 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: {{ matrix_hookshot_github_private_key }}
  19. webhook:
  20. # Webhook settings for the GitHub app.
  21. #
  22. secret: {{ matrix_hookshot_github_secret }}
  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 }}
  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 }}
  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 }}
  56. oauth:
  57. client_id: {{ matrix_hookshot_jira_oauth_id }}
  58. client_secret: {{ matrix_hookshot_jira_oauth_secret }}
  59. redirect_uri: {{ matrix_hookshot_jira_oauth_uri }}
  60. {% endif %}
  61. {% if matrix_hookshot_generic_enabled %}
  62. generic:
  63. # (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
  64. #
  65. enabled: {{ matrix_hookshot_generic_enabled }}
  66. urlPrefix: {{ matrix_hookshot_generic_urlprefix }}
  67. allowJsTransformationFunctions: {{ matrix_hookshot_generic_allow_js_transformation_functions }}
  68. userIdPrefix: {{ matrix_hookshot_generic_user_id_prefix }}
  69. {% endif %}
  70. {% if matrix_hookshot_figma_enabled %}
  71. figma:
  72. # (Optional) Configure this to enable Figma support
  73. #
  74. publicUrl: https://example.com/hookshot/
  75. instances: {{ matrix_hookshot_figma_instances }}
  76. {% endif %}
  77. provisioning:
  78. # (Optional) Provisioning API for integration managers
  79. #
  80. secret: {{ matrix_hookshot_provisioning_secret }}
  81. passFile:
  82. # A passkey used to encrypt tokens stored inside the bridge.
  83. # Run openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096 to generate
  84. #
  85. /data/passkey.pem
  86. bot:
  87. # (Optional) Define profile information for the bot user
  88. #
  89. displayname: {{ matrix_hookshot_bot_displayname }}
  90. avatar: {{ matrix_hookshot_bot_avatar }}
  91. metrics:
  92. # (Optional) Prometheus metrics support
  93. #
  94. enabled: {{ matrix_hookshot_metrics_enabled }}
  95. logging:
  96. # (Optional) Logging settings. You can have a severity debug,info,warn,error
  97. #
  98. level: info
  99. listeners:
  100. # (Optional) HTTP Listener configuration.
  101. # Bind resource endpoints to ports and addresses.
  102. # 'resources' may be any of webhooks, widgets, metrics, provisioning, appservice
  103. #
  104. {# always enabled since all services need it #}
  105. - port: {{ matrix_hookshot_webhook_port }}
  106. bindAddress: 0.0.0.0
  107. resources:
  108. - webhooks
  109. {% if matrix_hookshot_metrics_enabled %}
  110. - port: {{ matrix_hookshot_metrics_port }}
  111. bindAddress: 0.0.0.0
  112. resources:
  113. - metrics
  114. {% endif %}
  115. {% if matrix_hookshot_provisioning_enabled %}
  116. - port: {{ matrix_hookshot_provisioning_port }}
  117. bindAddress: 0.0.0.0
  118. resources:
  119. - provisioning
  120. {% endif %}