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.
160 lines
5.5 KiB
160 lines
5.5 KiB
3 years ago
|
#jinja2: lstrip_blocks: "True"
|
||
|
bridge:
|
||
|
# Basic homeserver configuration
|
||
|
#
|
||
|
domain: {{ matrix_domain }}
|
||
|
url: {{ matrix_hookshot_homeserver_address }}
|
||
3 years ago
|
mediaUrl: {{ matrix_hookshot_homeserver_address }}
|
||
3 years ago
|
port: {{ matrix_hookshot_appservice_port }}
|
||
3 years ago
|
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 }}
|
||
3 years ago
|
privateKeyFile: /data/{{ matrix_hookshot_github_private_key_file }}
|
||
3 years ago
|
webhook:
|
||
|
# Webhook settings for the GitHub app.
|
||
|
#
|
||
3 years ago
|
secret: {{ matrix_hookshot_github_secret|to_json }}
|
||
3 years ago
|
{% if matrix_hookshot_github_oauth_enabled %}
|
||
|
oauth:
|
||
|
# (Optional) Settings for allowing users to sign in via OAuth.
|
||
|
#
|
||
|
client_id: {{ matrix_hookshot_github_oauth_id }}
|
||
3 years ago
|
client_secret: {{ matrix_hookshot_github_oauth_secret|to_json }}
|
||
3 years ago
|
redirect_uri: {{ matrix_hookshot_github_oauth_uri }}
|
||
|
{% endif %}
|
||
|
defaultOptions:
|
||
|
# (Optional) Default options for GitHub connections.
|
||
|
#
|
||
|
ignoreHooks: {{ matrix_hookshot_github_ignore_hooks }}
|
||
3 years ago
|
commandPrefix: "{{ matrix_hookshot_github_command_prefix }}"
|
||
3 years ago
|
showIssueRoomLink: {{ matrix_hookshot_github_showIssueRoomLink }}
|
||
3 years ago
|
prDiff: {{ matrix_hookshot_github_pr_diff }}
|
||
|
includingLabels:{{ matrix_hookshot_github_including_labels }}
|
||
|
excludingLabels: {{ matrix_hookshot_github_excluding_labels }}
|
||
3 years ago
|
hotlinkIssues:
|
||
|
prefix: "{{ matrix_hookshot_github_hotlink_prefix }}"
|
||
3 years ago
|
{% endif %}
|
||
|
{% if matrix_hookshot_gitlab_enabled %}
|
||
|
gitlab:
|
||
|
# (Optional) Configure this to enable GitLab support
|
||
|
#
|
||
|
instances:
|
||
|
{{ matrix_hookshot_gitlab_instances }}
|
||
|
webhook:
|
||
3 years ago
|
secret: {{ matrix_hookshot_gitlab_secret|to_json }}
|
||
3 years ago
|
{% endif %}
|
||
3 years ago
|
{% if matrix_hookshot_figma_enabled %}
|
||
|
figma:
|
||
|
# (Optional) Configure this to enable Figma support
|
||
|
#
|
||
|
publicUrl: {{ matrix_hookshot_figma_publicUrl }}
|
||
|
instances: {{ matrix_hookshot_figma_instances }}
|
||
|
{% endif %}
|
||
3 years ago
|
{% if matrix_hookshot_jira_enabled %}
|
||
|
jira:
|
||
|
# (Optional) Configure this to enable Jira support
|
||
|
#
|
||
|
webhook:
|
||
3 years ago
|
secret: {{ matrix_hookshot_jira_secret|to_json }}
|
||
3 years ago
|
{% if matrix_hookshot_jira_oauth_enabled %}
|
||
3 years ago
|
oauth:
|
||
3 years ago
|
client_id: {{ matrix_hookshot_jira_oauth_id|to_json }}
|
||
|
client_secret: {{ matrix_hookshot_jira_oauth_secret|to_json }}
|
||
3 years ago
|
redirect_uri: {{ matrix_hookshot_jira_oauth_uri }}
|
||
|
{% endif %}
|
||
3 years ago
|
{% endif %}
|
||
3 years ago
|
{% 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 }}
|
||
3 years ago
|
userIdPrefix: {{ matrix_hookshot_generic_user_id_prefix|to_json }}
|
||
3 years ago
|
{% endif %}
|
||
3 years ago
|
{% if matrix_hookshot_feeds_enabled %}
|
||
|
feeds:
|
||
|
# (Optional) Configure this to enable RSS/Atom feed support
|
||
|
#
|
||
2 years ago
|
enabled: {{ matrix_hookshot_feeds_enabled | to_json }}
|
||
|
pollIntervalSeconds: {{ matrix_hookshot_feeds_pollIntervalSeconds | to_json }}
|
||
2 years ago
|
pollTimeoutSeconds: {{ matrix_hookshot_feeds_pollTimeoutSeconds | to_json }}
|
||
3 years ago
|
{% endif %}
|
||
3 years ago
|
{% if matrix_hookshot_provisioning_enabled %}
|
||
3 years ago
|
provisioning:
|
||
|
# (Optional) Provisioning API for integration managers
|
||
|
#
|
||
3 years ago
|
secret: {{ matrix_hookshot_provisioning_secret|to_json }}
|
||
3 years ago
|
{% endif %}
|
||
3 years ago
|
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
|
||
|
#
|
||
3 years ago
|
/data/passkey.pem
|
||
3 years ago
|
bot:
|
||
|
# (Optional) Define profile information for the bot user
|
||
|
#
|
||
3 years ago
|
displayname: {{ matrix_hookshot_bot_displayname }}
|
||
3 years ago
|
avatar: {{ matrix_hookshot_bot_avatar }}
|
||
3 years ago
|
metrics:
|
||
|
# (Optional) Prometheus metrics support
|
||
|
#
|
||
|
enabled: {{ matrix_hookshot_metrics_enabled }}
|
||
|
logging:
|
||
|
# (Optional) Logging settings. You can have a severity debug,info,warn,error
|
||
|
#
|
||
2 years ago
|
level: warn
|
||
3 years ago
|
{% if matrix_hookshot_widgets_enabled %}
|
||
|
widgets:
|
||
|
# (Optional) EXPERIMENTAL support for complimentary widgets
|
||
|
#
|
||
|
addToAdminRooms: {{ matrix_hookshot_widgets_addToAdminRooms }}
|
||
|
{% if matrix_hookshot_widgets_roomSetupWidget_enabled %}
|
||
|
roomSetupWidget:
|
||
|
addOnInvite: {{ matrix_hookshot_widgets_roomSetupWidget_addOnInvite }}
|
||
|
{% endif %}
|
||
|
{% if not matrix_hookshot_widgets_disallowedIpRanges is in [None, ''] %}
|
||
|
disallowedIpRanges: {{ matrix_hookshot_widgets_disallowedIpRanges }}
|
||
|
{% endif %}
|
||
|
publicUrl: {{ matrix_hookshot_widgets_publicUrl }}
|
||
|
branding:
|
||
|
widgetTitle: {{ matrix_hookshot_widgets_branding_widgetTitle }}
|
||
|
{% endif %}
|
||
3 years ago
|
{% if matrix_hookshot_permissions %}
|
||
|
permissions: {{ matrix_hookshot_permissions }}
|
||
|
{% endif %}
|
||
3 years ago
|
listeners:
|
||
|
# (Optional) HTTP Listener configuration.
|
||
|
# Bind resource endpoints to ports and addresses.
|
||
|
# 'resources' may be any of webhooks, widgets, metrics, provisioning, appservice
|
||
|
#
|
||
3 years ago
|
{# always enabled since all services need it #}
|
||
3 years ago
|
- port: {{ matrix_hookshot_webhook_port }}
|
||
|
bindAddress: 0.0.0.0
|
||
|
resources:
|
||
|
- webhooks
|
||
3 years ago
|
{% if matrix_hookshot_metrics_enabled %}
|
||
3 years ago
|
- port: {{ matrix_hookshot_metrics_port }}
|
||
|
bindAddress: 0.0.0.0
|
||
|
resources:
|
||
|
- metrics
|
||
3 years ago
|
{% endif %}
|
||
|
{% if matrix_hookshot_provisioning_enabled %}
|
||
|
- port: {{ matrix_hookshot_provisioning_port }}
|
||
3 years ago
|
bindAddress: 0.0.0.0
|
||
|
resources:
|
||
|
- provisioning
|
||
3 years ago
|
{% endif %}
|
||
3 years ago
|
{% if matrix_hookshot_widgets_enabled %}
|
||
|
- port: {{ matrix_hookshot_widgets_port }}
|
||
|
bindAddress: 0.0.0.0
|
||
|
resources:
|
||
|
- widgets
|
||
|
{% endif %}
|