2022-01-03 20:22:42 +00:00
#jinja2: lstrip_blocks: "True"
bridge:
# Basic homeserver configuration
#
domain: {{ matrix_domain }}
url: {{ matrix_hookshot_homeserver_address }}
2022-01-08 15:51:52 +00:00
mediaUrl: {{ matrix_hookshot_homeserver_address }}
2022-01-06 17:55:36 +00:00
port: {{ matrix_hookshot_appservice_port }}
2022-01-03 20:22:42 +00: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.
#
id: {{ matrix_hookshot_github_appid }}
2022-01-30 18:21:26 +00:00
privateKeyFile: /data/{{ matrix_hookshot_github_private_key_file }}
2022-01-03 20:22:42 +00:00
webhook:
# Webhook settings for the GitHub app.
#
2022-01-30 16:44:22 +00:00
secret: {{ matrix_hookshot_github_secret|to_json }}
2022-01-03 20:22:42 +00:00
{% if matrix_hookshot_github_oauth_enabled %}
oauth:
# (Optional) Settings for allowing users to sign in via OAuth.
#
client_id: {{ matrix_hookshot_github_oauth_id }}
2022-01-30 16:44:22 +00:00
client_secret: {{ matrix_hookshot_github_oauth_secret|to_json }}
2022-01-03 20:22:42 +00:00
redirect_uri: {{ matrix_hookshot_github_oauth_uri }}
{% endif %}
defaultOptions:
# (Optional) Default options for GitHub connections.
#
ignoreHooks: {{ matrix_hookshot_github_ignore_hooks }}
2022-01-12 00:26:17 +00:00
commandPrefix: "{{ matrix_hookshot_github_command_prefix }}"
2022-01-03 20:22:42 +00:00
showIssueRoomLink: {{ matrix_hookshot_github_show_issue_room_link }}
prDiff: {{ matrix_hookshot_github_pr_diff }}
includingLabels:{{ matrix_hookshot_github_including_labels }}
excludingLabels: {{ matrix_hookshot_github_excluding_labels }}
{% endif %}
{% if matrix_hookshot_gitlab_enabled %}
gitlab:
# (Optional) Configure this to enable GitLab support
#
instances:
{{ matrix_hookshot_gitlab_instances }}
webhook:
2022-01-30 16:44:22 +00:00
secret: {{ matrix_hookshot_gitlab_secret|to_json }}
2022-01-03 20:22:42 +00:00
{% endif %}
2022-04-11 14:45:33 +00:00
{% if matrix_hookshot_figma_enabled %}
figma:
# (Optional) Configure this to enable Figma support
#
publicUrl: {{ matrix_hookshot_figma_publicUrl }}
instances: {{ matrix_hookshot_figma_instances }}
{% endif %}
2022-01-03 20:22:42 +00:00
{% if matrix_hookshot_jira_enabled %}
jira:
# (Optional) Configure this to enable Jira support
#
webhook:
2022-01-30 16:44:22 +00:00
secret: {{ matrix_hookshot_jira_secret|to_json }}
2022-01-10 23:19:29 +00:00
{% if matrix_hookshot_jira_oauth_enabled %}
2022-01-03 20:22:42 +00:00
oauth:
2022-01-30 16:44:22 +00:00
client_id: {{ matrix_hookshot_jira_oauth_id|to_json }}
client_secret: {{ matrix_hookshot_jira_oauth_secret|to_json }}
2022-01-03 20:22:42 +00:00
redirect_uri: {{ matrix_hookshot_jira_oauth_uri }}
{% endif %}
2022-01-10 23:19:29 +00:00
{% endif %}
2022-01-03 20:22:42 +00: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
#
enabled: {{ matrix_hookshot_generic_enabled }}
urlPrefix: {{ matrix_hookshot_generic_urlprefix }}
allowJsTransformationFunctions: {{ matrix_hookshot_generic_allow_js_transformation_functions }}
2022-01-30 16:44:22 +00:00
userIdPrefix: {{ matrix_hookshot_generic_user_id_prefix|to_json }}
2022-01-03 20:22:42 +00:00
{% endif %}
2022-01-10 23:19:29 +00:00
{% if matrix_hookshot_provisioning_enabled %}
2022-01-03 20:22:42 +00:00
provisioning:
# (Optional) Provisioning API for integration managers
#
2022-01-30 16:44:22 +00:00
secret: {{ matrix_hookshot_provisioning_secret|to_json }}
2022-01-10 23:19:29 +00:00
{% endif %}
2022-01-03 20:22:42 +00: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 15:55:27 +00:00
/data/passkey.pem
2022-01-03 20:22:42 +00:00
bot:
# (Optional) Define profile information for the bot user
#
2022-01-30 18:28:40 +00:00
displayname: {{ matrix_hookshot_bot_displayname }}
2022-01-06 17:55:36 +00:00
avatar: {{ matrix_hookshot_bot_avatar }}
2022-01-03 20:22:42 +00:00
metrics:
# (Optional) Prometheus metrics support
#
enabled: {{ matrix_hookshot_metrics_enabled }}
logging:
# (Optional) Logging settings. You can have a severity debug,info,warn,error
#
level: info
2022-01-14 18:21:05 +00:00
{% if matrix_hookshot_permissions %}
permissions: {{ matrix_hookshot_permissions }}
{% endif %}
2022-01-03 20:22:42 +00: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 17:55:36 +00:00
{# always enabled since all services need it #}
2022-01-03 20:22:42 +00:00
- port: {{ matrix_hookshot_webhook_port }}
bindAddress: 0.0.0.0
resources:
- webhooks
2022-01-06 17:55:36 +00:00
{% if matrix_hookshot_metrics_enabled %}
2022-01-03 20:22:42 +00:00
- port: {{ matrix_hookshot_metrics_port }}
bindAddress: 0.0.0.0
resources:
- metrics
2022-01-06 17:55:36 +00:00
{% endif %}
{% if matrix_hookshot_provisioning_enabled %}
- port: {{ matrix_hookshot_provisioning_port }}
2022-01-03 20:22:42 +00:00
bindAddress: 0.0.0.0
resources:
- provisioning
2022-01-06 17:55:36 +00:00
{% endif %}