2020-06-03 06:33:28 +00:00
|
|
|
#jinja2: lstrip_blocks: "True"
|
|
|
|
bridge:
|
|
|
|
# Port to host the bridge on
|
|
|
|
# Used for communication between the homeserver and the bridge
|
|
|
|
port: {{ matrix_mx_puppet_slack_appservice_port }}
|
|
|
|
# The host connections to the bridge's webserver are allowed from
|
|
|
|
bindAddress: 0.0.0.0
|
|
|
|
# Public domain of the homeserver
|
|
|
|
domain: {{ matrix_mx_puppet_slack_homeserver_domain }}
|
|
|
|
# Reachable URL of the Matrix homeserver
|
|
|
|
homeserverUrl: {{ matrix_mx_puppet_slack_homeserver_address }}
|
2020-06-11 09:10:13 +00:00
|
|
|
{% if matrix_mx_puppet_slack_login_shared_secret != '' %}
|
|
|
|
loginSharedSecretMap:
|
|
|
|
{{ matrix_domain }}: {{ matrix_mx_puppet_slack_login_shared_secret }}
|
|
|
|
{% endif %}
|
2020-06-03 06:33:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Slack OAuth settings. Create a slack app at https://api.slack.com/apps
|
|
|
|
oauth:
|
|
|
|
enabled: true
|
2022-01-28 01:00:27 +00:00
|
|
|
# Slack app credentials.
|
|
|
|
# N.B. This must be quoted so YAML does not parse it as a float.
|
|
|
|
clientId: '{{ matrix_mx_puppet_slack_oauth_client_id }}'
|
|
|
|
clientSecret: '{{ matrix_mx_puppet_slack_oauth_client_secret }}'
|
2020-06-03 06:33:28 +00:00
|
|
|
# Path where to listen for OAuth redirect callbacks.
|
|
|
|
redirectPath: {{ matrix_mx_puppet_slack_redirect_path }}
|
|
|
|
# Set up proxying from https://your.domain/redirect_path to http://bindAddress:port/redirect_path,
|
|
|
|
# then set this field and the Slack app redirect URI field to the former.
|
|
|
|
redirectUri: {{ matrix_mx_puppet_slack_redirect_uri }}
|
|
|
|
|
|
|
|
presence:
|
|
|
|
# Bridge Discord online/offline status
|
|
|
|
enabled: true
|
|
|
|
# How often to send status to the homeserver in milliseconds
|
|
|
|
interval: 500
|
|
|
|
|
|
|
|
provisioning:
|
|
|
|
# Regex of Matrix IDs allowed to use the puppet bridge
|
|
|
|
whitelist: {{ matrix_mx_puppet_slack_provisioning_whitelist|to_json }}
|
|
|
|
# Allow a specific user
|
|
|
|
#- "@user:server\\.com"
|
|
|
|
# Allow users on a specific homeserver
|
|
|
|
#- "@.*:yourserver\\.com"
|
|
|
|
# Allow anyone
|
|
|
|
#- ".*"
|
|
|
|
# Regex of Matrix IDs forbidden from using the puppet bridge
|
|
|
|
#blacklist:
|
|
|
|
# Disallow a specific user
|
|
|
|
#- "@user:server\\.com"
|
|
|
|
# Disallow users on a specific homeserver
|
|
|
|
#- "@.*:yourserver\\.com"
|
|
|
|
blacklist: {{ matrix_mx_puppet_slack_provisioning_blacklist|to_json }}
|
|
|
|
|
|
|
|
# Shared secret for the provisioning API for use by integration managers.
|
|
|
|
# If this is not set, the provisioning API will not be enabled.
|
|
|
|
#sharedSecret: random string
|
|
|
|
# Path prefix for the provisioning API. /v1 will be appended to the prefix automatically.
|
|
|
|
apiPrefix: /_matrix/provision
|
|
|
|
|
|
|
|
database:
|
2020-12-14 11:38:51 +00:00
|
|
|
{% if matrix_mx_puppet_slack_database_engine == 'postgres' %}
|
2020-06-03 06:33:28 +00:00
|
|
|
# Use Postgres as a database backend
|
|
|
|
# If set, will be used instead of SQLite3
|
|
|
|
# Connection string to connect to the Postgres instance
|
|
|
|
# with username "user", password "pass", host "localhost" and database name "dbname".
|
|
|
|
# Modify each value as necessary
|
2020-12-22 14:39:21 +00:00
|
|
|
connString: {{ matrix_mx_puppet_slack_database_connection_string|to_json }}
|
2020-12-14 11:38:51 +00:00
|
|
|
{% else %}
|
2020-06-03 06:33:28 +00:00
|
|
|
# Use SQLite3 as a database backend
|
|
|
|
# The name of the database file
|
2020-12-22 14:39:21 +00:00
|
|
|
filename: {{ matrix_mx_puppet_slack_sqlite_database_path_in_container|to_json }}
|
2020-12-14 11:38:51 +00:00
|
|
|
{% endif %}
|
2020-06-03 06:33:28 +00:00
|
|
|
|
|
|
|
logging:
|
|
|
|
# Log level of console output
|
|
|
|
# Allowed values starting with most verbose:
|
|
|
|
# silly, debug, verbose, info, warn, error
|
|
|
|
console: info
|
|
|
|
# Date and time formatting
|
|
|
|
lineDateFormat: MMM-D HH:mm:ss.SSS
|
|
|
|
# Logging files
|
|
|
|
# Log files are rotated daily by default
|
2021-01-22 17:22:26 +00:00
|
|
|
files: []
|