mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-12 08:43:55 +02:00
410a915a8a
This paves the way for installing other roles into `roles/galaxy` using `ansible-galaxy`, similar to how it's done in: - https://github.com/spantaleev/gitea-docker-ansible-deploy - https://github.com/spantaleev/nextcloud-docker-ansible-deploy In the near future, we'll be removing a lot of the shared role code from here and using upstream roles for it. Some of the core `matrix-*` roles have already been extracted out into other reusable roles: - https://github.com/devture/com.devture.ansible.role.postgres - https://github.com/devture/com.devture.ansible.role.systemd_docker_base - https://github.com/devture/com.devture.ansible.role.timesync - https://github.com/devture/com.devture.ansible.role.vars_preserver - https://github.com/devture/com.devture.ansible.role.playbook_runtime_messages - https://github.com/devture/com.devture.ansible.role.playbook_help We just need to migrate to those.
80 lines
3.0 KiB
Django/Jinja
80 lines
3.0 KiB
Django/Jinja
#jinja2: lstrip_blocks: "True"
|
|
bridge:
|
|
# Port to host the bridge on
|
|
# Used for communication between the homeserver and the bridge
|
|
port: {{ matrix_mx_puppet_twitter_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_twitter_homeserver_domain }}
|
|
# Reachable URL of the Matrix homeserver
|
|
homeserverUrl: {{ matrix_mx_puppet_twitter_homeserver_address }}
|
|
{% if matrix_mx_puppet_twitter_login_shared_secret != '' %}
|
|
loginSharedSecretMap:
|
|
{{ matrix_domain }}: {{ matrix_mx_puppet_twitter_login_shared_secret }}
|
|
{% endif %}
|
|
|
|
twitter:
|
|
consumerKey: "{{ matrix_mx_puppet_twitter_consumer_key }}"
|
|
consumerSecret: "{{ matrix_mx_puppet_twitter_consumer_secret }}"
|
|
accessToken: "{{ matrix_mx_puppet_twitter_access_token }}"
|
|
accessTokenSecret: "{{ matrix_mx_puppet_twitter_access_token_secret }}"
|
|
environment: "{{ matrix_mx_puppet_twitter_environment }}"
|
|
server:
|
|
url: "{{ matrix_mx_puppet_twitter_webhook_url }}"
|
|
path: "{{ matrix_mx_puppet_twitter_webhook_path }}"
|
|
|
|
presence:
|
|
# Bridge Twitter online/offline status
|
|
enabled: true
|
|
# How often to send status to the homeserver in milliseconds
|
|
interval: 5000
|
|
|
|
provisioning:
|
|
# Regex of Matrix IDs allowed to use the puppet bridge
|
|
whitelist: {{ matrix_mx_puppet_twitter_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_twitter_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:
|
|
{% if matrix_mx_puppet_twitter_database_engine == 'postgres' %}
|
|
# 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
|
|
connString: {{ matrix_mx_puppet_twitter_database_connection_string|to_json }}
|
|
{% else %}
|
|
# Use SQLite3 as a database backend
|
|
# The name of the database file
|
|
filename: {{ matrix_mx_puppet_twitter_sqlite_database_path_in_container|to_json }}
|
|
{% endif %}
|
|
|
|
logging:
|
|
# Log level of console output
|
|
# Allowed values starting with most verbose:
|
|
# silly, debug, verbose, info, warn, error
|
|
console: warn
|
|
# Date and time formatting
|
|
lineDateFormat: MMM-D HH:mm:ss.SSS
|
|
# Logging files
|
|
# Log files are rotated daily by default
|
|
files: []
|