2020-12-13 14:55:36 +00:00
# This is an example configuration file
2021-04-11 16:07:43 +01:00
bridge :
# Basic homeserver configuration
#
domain : example.com
url : http://localhost:8008
mediaUrl : http://example.com
port : 9993
bindAddress : 127.0 .0 .1
github :
2021-11-17 12:29:34 +00:00
# (Optional) Configure this to enable GitHub support
2021-04-11 16:07:43 +01:00
#
auth :
2021-12-01 10:54:47 +00:00
# Authentication for the GitHub App.
#
2021-04-11 16:07:43 +01:00
id : 123
privateKeyFile : github-key.pem
2021-12-01 10:54:47 +00:00
webhook :
# Webhook settings for the GitHub app.
#
secret : secrettoken
2021-04-11 16:07:43 +01:00
oauth :
2021-12-01 10:54:47 +00:00
# (Optional) Settings for allowing users to sign in via OAuth.
#
2021-04-11 16:07:43 +01:00
client_id : foo
client_secret : bar
redirect_uri : https://example.com/bridge_oauth/
2021-12-01 10:54:47 +00:00
defaultOptions :
# (Optional) Default options for GitHub connections.
#
showIssueRoomLink : false
2021-04-11 16:07:43 +01:00
gitlab :
2021-11-17 12:29:34 +00:00
# (Optional) Configure this to enable GitLab support
2021-04-11 16:07:43 +01:00
#
instances :
gitlab.com :
url : https://gitlab.com
webhook :
secret : secrettoken
2021-11-17 12:29:34 +00:00
jira :
2021-11-17 14:24:32 +00:00
# (Optional) Configure this to enable Jira support
2021-11-17 12:29:34 +00:00
#
2021-11-17 12:31:01 +00:00
webhook :
secret : secrettoken
2021-11-25 11:12:29 +00:00
oauth :
client_id : foo
client_secret : bar
redirect_uri : https://example.com/bridge_oauth/
2021-11-17 12:31:01 +00:00
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 : false
2021-11-30 19:33:29 +00:00
urlPrefix : https://example.com/mywebhookspath/
2021-11-17 12:31:01 +00:00
allowJsTransformationFunctions : false
2021-12-03 12:34:24 +00:00
userIdPrefix : webhooks_
2022-01-06 17:13:58 +00:00
figma :
# (Optional) Configure this to enable Figma support
#
publicUrl : https://example.com/hookshot/
instances :
your-instance :
teamId : your-team-id
accessToken : your-personal-access-token
passcode : your-webhook-passcode
2021-11-25 13:30:19 +00:00
provisioning :
# (Optional) Provisioning API for integration managers
#
secret : "!secretToken"
2021-04-11 16:07:43 +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
#
passkey.pem
2021-12-13 13:10:36 +00:00
bot :
# (Optional) Define profile information for the bot user
#
displayname : GitHub Bot
avatar : mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d
2021-12-16 15:05:03 +00:00
metrics :
# (Optional) Prometheus metrics support
#
enabled : true
2021-04-11 16:07:43 +01:00
queue :
# (Optional) Message queue / cache configuration options for large scale deployments
#
monolithic : true
port : 6379
host : localhost
logging :
# (Optional) Logging settings. You can have a severity debug,info,warn,error
#
level : info
2021-12-21 16:52:12 +00:00
listeners :
# (Optional) HTTP Listener configuration.
# Bind resource endpoints to ports and addresses.
2022-01-04 17:49:59 +00:00
# 'port' must be specified. Each listener must listen on a unique port.
# 'bindAddress' will default to '127.0.0.1' if not specified, which may not be suited to Docker environments.
# 'resources' may be any of webhooks, widgets, metrics, provisioning
2021-12-21 16:52:12 +00:00
#
- port : 9000
bindAddress : 0.0 .0 .0
resources :
- webhooks
- port : 9001
bindAddress : 127.0 .0 .1
resources :
- metrics
- provisioning
2020-12-12 20:29:33 +00:00