2022-01-03 21:22:42 +01:00
#jinja2: lstrip_blocks: "True"
bridge:
# Basic homeserver configuration
#
domain: {{ matrix_domain }}
url: {{ matrix_hookshot_homeserver_address }}
2022-01-08 16:51:52 +01:00
mediaUrl: {{ matrix_hookshot_homeserver_address }}
2022-01-06 18:55:36 +01:00
port: {{ matrix_hookshot_appservice_port }}
2022-01-03 21:22:42 +01:00
bindAddress: 0.0.0.0
{% if matrix_hookshot_github_enabled %}
github:
# (Optional) Configure this to enable GitHub support
#
auth:
# Authentication for the GitHub App.
#
2022-11-30 07:13:39 +01:00
id: {{ matrix_hookshot_github_auth_id | to_json }}
2022-01-30 19:21:26 +01:00
privateKeyFile: /data/{{ matrix_hookshot_github_private_key_file }}
2022-01-03 21:22:42 +01:00
webhook:
# Webhook settings for the GitHub app.
#
2022-11-30 07:13:39 +01:00
secret: {{ matrix_hookshot_github_webhook_secret | to_json }}
2022-01-03 21:22:42 +01:00
{% if matrix_hookshot_github_oauth_enabled %}
oauth:
# (Optional) Settings for allowing users to sign in via OAuth.
#
2022-11-30 07:13:39 +01:00
client_id: {{ matrix_hookshot_github_oauth_client_id | to_json }}
client_secret: {{ matrix_hookshot_github_oauth_client_secret | to_json }}
redirect_uri: {{ matrix_hookshot_github_oauth_redirect_uri | to_json }}
2022-01-03 21:22:42 +01:00
{% endif %}
defaultOptions:
# (Optional) Default options for GitHub connections.
#
2022-11-30 07:13:39 +01:00
ignoreHooks: {{ matrix_hookshot_github_defaultOptions_ignoreHooks | to_json }}
commandPrefix: {{ matrix_hookshot_github_defaultOptions_commandPrefix | to_json }}
showIssueRoomLink: {{ matrix_hookshot_github_defaultOptions_showIssueRoomLink | to_json }}
prDiff: {{ matrix_hookshot_github_defaultOptions_prDiff | to_json }}
includingLabels: {{ matrix_hookshot_github_defaultOptions_includingLabels | to_json }}
excludingLabels: {{ matrix_hookshot_github_defaultOptions_excludingLabels | to_json }}
2022-04-11 16:48:50 +02:00
hotlinkIssues:
2022-11-30 07:13:39 +01:00
prefix: {{ matrix_hookshot_github_defaultOptions_hotlinkIssues_prefix | to_json }}
2022-01-03 21:22:42 +01:00
{% endif %}
{% if matrix_hookshot_gitlab_enabled %}
gitlab:
# (Optional) Configure this to enable GitLab support
#
2022-11-30 07:13:39 +01:00
instances: {{ matrix_hookshot_gitlab_instances | to_json }}
2022-01-03 21:22:42 +01:00
webhook:
2022-11-30 07:13:39 +01:00
secret: {{ matrix_hookshot_gitlab_webhook_secret | to_json }}
2024-07-08 17:12:03 +02:00
publicUrl: {{ matrix_hookshot_gitlab_webhook_publicUrl | to_json }}
2022-01-03 21:22:42 +01:00
{% endif %}
2022-04-11 16:45:33 +02:00
{% if matrix_hookshot_figma_enabled %}
figma:
# (Optional) Configure this to enable Figma support
#
2022-11-30 07:13:39 +01:00
publicUrl: {{ matrix_hookshot_figma_publicUrl | to_json }}
instances: {{ matrix_hookshot_figma_instances | to_json }}
2022-04-11 16:45:33 +02:00
{% endif %}
2022-01-03 21:22:42 +01:00
{% if matrix_hookshot_jira_enabled %}
jira:
# (Optional) Configure this to enable Jira support
#
webhook:
2022-11-30 07:13:39 +01:00
secret: {{ matrix_hookshot_jira_webhook_secret | to_json }}
2022-01-11 00:19:29 +01:00
{% if matrix_hookshot_jira_oauth_enabled %}
2022-01-03 21:22:42 +01:00
oauth:
2022-11-30 07:13:39 +01:00
client_id: {{ matrix_hookshot_jira_oauth_client_id | to_json }}
client_secret: {{ matrix_hookshot_jira_oauth_client_secret | to_json }}
redirect_uri: {{ matrix_hookshot_jira_oauth_redirect_uri | to_json }}
2022-01-03 21:22:42 +01:00
{% endif %}
2022-01-11 00:19:29 +01:00
{% endif %}
2022-01-03 21:22:42 +01:00
{% if matrix_hookshot_generic_enabled %}
generic:
# (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
#
2022-11-30 07:13:39 +01:00
enabled: {{ matrix_hookshot_generic_enabled | to_json }}
2024-09-25 14:25:31 +02:00
outbound: {{ matrix_hookshot_generic_outbound | to_json }}
2022-11-30 07:16:33 +01:00
enableHttpGet: {{ matrix_hookshot_generic_enableHttpGet | to_json }}
2022-11-30 07:13:39 +01:00
urlPrefix: {{ matrix_hookshot_generic_urlPrefix | to_json }}
userIdPrefix: {{ matrix_hookshot_generic_userIdPrefix | to_json }}
2022-11-30 07:16:33 +01:00
allowJsTransformationFunctions: {{ matrix_hookshot_generic_allowJsTransformationFunctions | to_json }}
waitForComplete: {{ matrix_hookshot_generic_waitForComplete | to_json }}
2022-01-03 21:22:42 +01:00
{% endif %}
2022-05-07 18:42:15 +02:00
{% if matrix_hookshot_feeds_enabled %}
feeds:
# (Optional) Configure this to enable RSS/Atom feed support
#
2022-10-31 20:52:01 +01:00
enabled: {{ matrix_hookshot_feeds_enabled | to_json }}
pollIntervalSeconds: {{ matrix_hookshot_feeds_pollIntervalSeconds | to_json }}
2022-10-31 20:50:39 +01:00
pollTimeoutSeconds: {{ matrix_hookshot_feeds_pollTimeoutSeconds | to_json }}
2022-05-07 18:42:15 +02:00
{% endif %}
2022-01-11 00:19:29 +01:00
{% if matrix_hookshot_provisioning_enabled %}
2022-01-03 21:22:42 +01:00
provisioning:
# (Optional) Provisioning API for integration managers
#
2022-11-30 07:13:39 +01:00
secret: {{ matrix_hookshot_provisioning_secret | to_json }}
2022-01-11 00:19:29 +01:00
{% endif %}
2022-01-03 21:22:42 +01:00
passFile:
# A passkey used to encrypt tokens stored inside the bridge.
# Run openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096 to generate
#
2022-01-08 16:55:27 +01:00
/data/passkey.pem
2022-01-03 21:22:42 +01:00
bot:
# (Optional) Define profile information for the bot user
#
2022-11-30 07:13:39 +01:00
displayname: {{ matrix_hookshot_bot_displayname | to_json }}
avatar: {{ matrix_hookshot_bot_avatar | to_json }}
2022-01-03 21:22:42 +01:00
metrics:
# (Optional) Prometheus metrics support
#
2022-11-30 07:13:39 +01:00
enabled: {{ matrix_hookshot_metrics_enabled | to_json }}
2024-04-17 14:34:56 +02:00
{% if matrix_hookshot_cache_redisUri %}
cache:
redisUri: {{ matrix_hookshot_cache_redisUri | to_json }}
2023-12-16 08:23:35 +01:00
{% endif %}
2024-11-29 16:51:11 +01:00
{% if matrix_hookshot_encryption_enabled %}
encryption:
2023-12-16 08:23:35 +01:00
storagePath: /data/encryption
{% endif %}
2022-01-03 21:22:42 +01:00
logging:
# (Optional) Logging settings. You can have a severity debug,info,warn,error
#
2022-11-30 07:18:41 +01:00
level: {{ matrix_hookshot_logging_level | to_json }}
2022-04-11 16:48:50 +02:00
{% if matrix_hookshot_widgets_enabled %}
widgets:
# (Optional) EXPERIMENTAL support for complimentary widgets
#
2022-11-30 07:13:39 +01:00
addToAdminRooms: {{ matrix_hookshot_widgets_addToAdminRooms | to_json }}
2022-04-11 16:48:50 +02:00
{% if matrix_hookshot_widgets_roomSetupWidget_enabled %}
roomSetupWidget:
2022-11-30 07:13:39 +01:00
addOnInvite: {{ matrix_hookshot_widgets_roomSetupWidget_addOnInvite | to_json }}
2022-04-11 16:48:50 +02:00
{% endif %}
{% if not matrix_hookshot_widgets_disallowedIpRanges is in [None, ''] %}
2022-11-30 07:13:39 +01:00
disallowedIpRanges: {{ matrix_hookshot_widgets_disallowedIpRanges | to_json }}
2022-04-11 16:48:50 +02:00
{% endif %}
2022-11-30 07:13:39 +01:00
publicUrl: {{ matrix_hookshot_widgets_publicUrl | to_json }}
2022-04-11 16:48:50 +02:00
branding:
2022-11-30 07:13:39 +01:00
widgetTitle: {{ matrix_hookshot_widgets_branding_widgetTitle | to_json }}
2022-04-11 16:48:50 +02:00
{% endif %}
2022-01-14 19:21:05 +01:00
{% if matrix_hookshot_permissions %}
2022-11-30 07:13:39 +01:00
permissions: {{ matrix_hookshot_permissions | to_json }}
2022-01-14 19:21:05 +01:00
{% endif %}
2022-01-03 21:22:42 +01:00
listeners:
# (Optional) HTTP Listener configuration.
# Bind resource endpoints to ports and addresses.
# 'resources' may be any of webhooks, widgets, metrics, provisioning, appservice
#
2022-01-06 18:55:36 +01:00
{# always enabled since all services need it #}
2022-01-03 21:22:42 +01:00
- port: {{ matrix_hookshot_webhook_port }}
bindAddress: 0.0.0.0
resources:
- webhooks
2022-01-06 18:55:36 +01:00
{% if matrix_hookshot_metrics_enabled %}
2022-01-03 21:22:42 +01:00
- port: {{ matrix_hookshot_metrics_port }}
bindAddress: 0.0.0.0
resources:
- metrics
2022-01-06 18:55:36 +01:00
{% endif %}
{% if matrix_hookshot_provisioning_enabled %}
- port: {{ matrix_hookshot_provisioning_port }}
2022-01-03 21:22:42 +01:00
bindAddress: 0.0.0.0
resources:
- provisioning
2022-01-06 18:55:36 +01:00
{% endif %}
2022-04-11 16:48:50 +02:00
{% if matrix_hookshot_widgets_enabled %}
- port: {{ matrix_hookshot_widgets_port }}
bindAddress: 0.0.0.0
resources:
- widgets
{% endif %}