mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-23 04:55:46 +00:00
Sync configuration with upstream for all Mautrix bridges
This commit is contained in:
parent
a84a24d9f5
commit
53186ffa1c
@ -64,6 +64,16 @@ matrix_mautrix_facebook_configuration_yaml: |
|
|||||||
# Postgres: postgres://username:password@hostname/dbname
|
# Postgres: postgres://username:password@hostname/dbname
|
||||||
database: sqlite:////data/mautrix-facebook.db
|
database: sqlite:////data/mautrix-facebook.db
|
||||||
|
|
||||||
|
# Public part of web server for out-of-Matrix interaction with the bridge.
|
||||||
|
public:
|
||||||
|
# Whether or not the public-facing endpoints should be enabled.
|
||||||
|
enabled: false
|
||||||
|
# The prefix to use in the public-facing endpoints.
|
||||||
|
prefix: /public
|
||||||
|
# The base URL where the public-facing endpoints are available. The prefix is not added
|
||||||
|
# implicitly.
|
||||||
|
external: https://example.com/public
|
||||||
|
|
||||||
# The unique ID of this appservice.
|
# The unique ID of this appservice.
|
||||||
id: facebook
|
id: facebook
|
||||||
# Username of the appservice bot.
|
# Username of the appservice bot.
|
||||||
@ -114,9 +124,17 @@ matrix_mautrix_facebook_configuration_yaml: |
|
|||||||
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
||||||
# your own Matrix account as the Matrix puppet for your Facebook account.
|
# your own Matrix account as the Matrix puppet for your Facebook account.
|
||||||
sync_with_custom_puppets: true
|
sync_with_custom_puppets: true
|
||||||
|
# Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
|
||||||
|
#
|
||||||
|
# If set, custom puppets will be enabled automatically for local users
|
||||||
|
# instead of users having to find an access token and run `login-matrix`
|
||||||
|
# manually.
|
||||||
|
login_shared_secret: null
|
||||||
# Whether or not to bridge presence in both directions. Facebook allows users not to broadcast
|
# Whether or not to bridge presence in both directions. Facebook allows users not to broadcast
|
||||||
# presence, but then it won't send other users' presence to the client.
|
# presence, but then it won't send other users' presence to the client.
|
||||||
presence: true
|
presence: true
|
||||||
|
# Whether or not to update avatars when syncing all contacts at startup.
|
||||||
|
update_avatar_initial_sync: true
|
||||||
|
|
||||||
# Permissions for using the bridge.
|
# Permissions for using the bridge.
|
||||||
# Permitted values:
|
# Permitted values:
|
||||||
@ -150,6 +168,8 @@ matrix_mautrix_facebook_configuration_yaml: |
|
|||||||
level: DEBUG
|
level: DEBUG
|
||||||
fbchat:
|
fbchat:
|
||||||
level: DEBUG
|
level: DEBUG
|
||||||
|
hbmqtt:
|
||||||
|
level: INFO
|
||||||
aiohttp:
|
aiohttp:
|
||||||
level: INFO
|
level: INFO
|
||||||
root:
|
root:
|
||||||
|
@ -110,10 +110,14 @@ matrix_mautrix_hangouts_configuration_yaml: |
|
|||||||
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
||||||
# your own Matrix account as the Matrix puppet for your Hangouts account.
|
# your own Matrix account as the Matrix puppet for your Hangouts account.
|
||||||
sync_with_custom_puppets: true
|
sync_with_custom_puppets: true
|
||||||
|
# Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
|
||||||
# Whether or not to bridge presence in both directions. Hangouts allows users not to broadcast
|
#
|
||||||
# presence, but then it won't send other users' presence to the client.
|
# If set, custom puppets will be enabled automatically for local users
|
||||||
presence: true
|
# instead of users having to find an access token and run `login-matrix`
|
||||||
|
# manually.
|
||||||
|
login_shared_secret: null
|
||||||
|
# Whether or not to update avatars when syncing all contacts at startup.
|
||||||
|
update_avatar_initial_sync: true
|
||||||
|
|
||||||
# Public website and API configs
|
# Public website and API configs
|
||||||
web:
|
web:
|
||||||
|
@ -146,6 +146,8 @@ matrix_mautrix_telegram_configuration_yaml: |
|
|||||||
- full name
|
- full name
|
||||||
- username
|
- username
|
||||||
- phone number
|
- phone number
|
||||||
|
# Maximum length of displayname
|
||||||
|
displayname_max_length: 100
|
||||||
|
|
||||||
# Maximum number of members to sync per portal when starting up. Other members will be
|
# Maximum number of members to sync per portal when starting up. Other members will be
|
||||||
# synced when they send messages. The maximum is 10000, after which the Telegram server
|
# synced when they send messages. The maximum is 10000, after which the Telegram server
|
||||||
@ -165,6 +167,8 @@ matrix_mautrix_telegram_configuration_yaml: |
|
|||||||
# Dialogs include groups and private chats, but only groups are synced.
|
# Dialogs include groups and private chats, but only groups are synced.
|
||||||
# Set to 0 to remove limit.
|
# Set to 0 to remove limit.
|
||||||
sync_dialog_limit: 30
|
sync_dialog_limit: 30
|
||||||
|
# Whether or not to sync and create portals for direct chats at startup.
|
||||||
|
sync_direct_chats: false
|
||||||
# The maximum number of simultaneous Telegram deletions to handle.
|
# The maximum number of simultaneous Telegram deletions to handle.
|
||||||
# A large number of simultaneous redactions could put strain on your homeserver.
|
# A large number of simultaneous redactions could put strain on your homeserver.
|
||||||
max_telegram_delete: 10
|
max_telegram_delete: 10
|
||||||
@ -178,19 +182,17 @@ matrix_mautrix_telegram_configuration_yaml: |
|
|||||||
# Only enable this if your displayname_template has some static part that the bridge can use to
|
# Only enable this if your displayname_template has some static part that the bridge can use to
|
||||||
# reliably identify what is a plaintext highlight.
|
# reliably identify what is a plaintext highlight.
|
||||||
plaintext_highlights: false
|
plaintext_highlights: false
|
||||||
# Show message editing as a reply to the original message.
|
|
||||||
# If this is false, message edits are not shown at all, as Matrix does not support editing yet.
|
|
||||||
edits_as_replies: true
|
|
||||||
# Highlight changed/added parts in edits. Requires lxml.
|
|
||||||
highlight_edits: false
|
|
||||||
# Whether or not to make portals of publicly joinable channels/supergroups publicly joinable on Matrix.
|
# Whether or not to make portals of publicly joinable channels/supergroups publicly joinable on Matrix.
|
||||||
public_portals: true
|
public_portals: true
|
||||||
# Whether or not to fetch and handle Telegram updates at startup from the time the bridge was down.
|
|
||||||
# Currently only works for private chats and normal groups.
|
|
||||||
catch_up: false
|
|
||||||
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
# Whether or not to use /sync to get presence, read receipts and typing notifications when using
|
||||||
# your own Matrix account as the Matrix puppet for your Telegram account.
|
# your own Matrix account as the Matrix puppet for your Telegram account.
|
||||||
sync_with_custom_puppets: true
|
sync_with_custom_puppets: true
|
||||||
|
# Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
|
||||||
|
#
|
||||||
|
# If set, custom puppets will be enabled automatically for local users
|
||||||
|
# instead of users having to find an access token and run `login-matrix`
|
||||||
|
# manually.
|
||||||
|
login_shared_secret: null
|
||||||
# Set to false to disable link previews in messages sent to Telegram.
|
# Set to false to disable link previews in messages sent to Telegram.
|
||||||
telegram_link_preview: true
|
telegram_link_preview: true
|
||||||
# Use inline images instead of a separate message for the caption.
|
# Use inline images instead of a separate message for the caption.
|
||||||
@ -200,6 +202,32 @@ matrix_mautrix_telegram_configuration_yaml: |
|
|||||||
image_as_file_size: 10
|
image_as_file_size: 10
|
||||||
# Maximum size of Telegram documents in megabytes to bridge.
|
# Maximum size of Telegram documents in megabytes to bridge.
|
||||||
max_document_size: 100
|
max_document_size: 100
|
||||||
|
# Enable experimental parallel file transfer, which makes uploads/downloads much faster by
|
||||||
|
# streaming from/to Matrix and using many connections for Telegram.
|
||||||
|
# Note that generating HQ thumbnails for videos is not possible with streamed transfers.
|
||||||
|
parallel_file_transfer: false
|
||||||
|
# Whether or not created rooms should have federation enabled.
|
||||||
|
# If false, created portal rooms will never be federated.
|
||||||
|
federate_rooms: true
|
||||||
|
# Settings for converting animated stickers.
|
||||||
|
animated_sticker:
|
||||||
|
# Format to which animated stickers should be converted.
|
||||||
|
# disable - No conversion, send as-is (gzipped lottie)
|
||||||
|
# png - converts to non-animated png (fastest),
|
||||||
|
# gif - converts to animated gif, but loses transparency
|
||||||
|
# webm - converts to webm video, requires ffmpeg executable with vp9 codec and webm container support
|
||||||
|
target: gif
|
||||||
|
# Arguments for converter. All converters take width and height.
|
||||||
|
# GIF converter takes background as a hex color.
|
||||||
|
args:
|
||||||
|
width: 256
|
||||||
|
height: 256
|
||||||
|
background: "020202" # only for gif
|
||||||
|
fps: 30 # only for webm
|
||||||
|
# Overrides for base power levels.
|
||||||
|
initial_power_level_overrides:
|
||||||
|
user: {}
|
||||||
|
group: {}
|
||||||
|
|
||||||
# Whether to bridge Telegram bot messages as m.notices or m.texts.
|
# Whether to bridge Telegram bot messages as m.notices or m.texts.
|
||||||
bot_messages_as_notices: true
|
bot_messages_as_notices: true
|
||||||
@ -233,12 +261,20 @@ matrix_mautrix_telegram_configuration_yaml: |
|
|||||||
# $message - The message content as HTML
|
# $message - The message content as HTML
|
||||||
message_formats:
|
message_formats:
|
||||||
m.text: "<b>$sender_displayname</b>: $message"
|
m.text: "<b>$sender_displayname</b>: $message"
|
||||||
|
m.notice: "<b>$sender_displayname</b>: $message"
|
||||||
m.emote: "* <b>$sender_displayname</b> $message"
|
m.emote: "* <b>$sender_displayname</b> $message"
|
||||||
m.file: "<b>$sender_displayname</b> sent a file: $message"
|
m.file: "<b>$sender_displayname</b> sent a file: $message"
|
||||||
m.image: "<b>$sender_displayname</b> sent an image: $message"
|
m.image: "<b>$sender_displayname</b> sent an image: $message"
|
||||||
m.audio: "<b>$sender_displayname</b> sent an audio file: $message"
|
m.audio: "<b>$sender_displayname</b> sent an audio file: $message"
|
||||||
m.video: "<b>$sender_displayname</b> sent a video: $message"
|
m.video: "<b>$sender_displayname</b> sent a video: $message"
|
||||||
m.location: "<b>$sender_displayname</b> sent a location: $message"
|
m.location: "<b>$sender_displayname</b> sent a location: $message"
|
||||||
|
# Telegram doesn't have built-in emotes, this field specifies how m.emote's from authenticated
|
||||||
|
# users are sent to telegram. All fields in message_formats are supported. Additionally, the
|
||||||
|
# Telegram user info is available in the following variables:
|
||||||
|
# $displayname - Telegram displayname
|
||||||
|
# $username - Telegram username (may not exist)
|
||||||
|
# $mention - Telegram @username or displayname mention (depending on which exists)
|
||||||
|
emote_format: "* $mention $formatted_body"
|
||||||
|
|
||||||
# The formats to use when sending state events to Telegram via the relay bot.
|
# The formats to use when sending state events to Telegram via the relay bot.
|
||||||
#
|
#
|
||||||
@ -283,6 +319,22 @@ matrix_mautrix_telegram_configuration_yaml: |
|
|||||||
|
|
||||||
# Options related to the message relay Telegram bot.
|
# Options related to the message relay Telegram bot.
|
||||||
relaybot:
|
relaybot:
|
||||||
|
private_chat:
|
||||||
|
# List of users to invite to the portal when someone starts a private chat with the bot.
|
||||||
|
# If empty, private chats with the bot won't create a portal.
|
||||||
|
invite: []
|
||||||
|
# Whether or not to bridge state change messages in relaybot private chats.
|
||||||
|
state_changes: true
|
||||||
|
# When private_chat_invite is empty, this message is sent to users /starting the
|
||||||
|
# relaybot. Telegram's "markdown" is supported.
|
||||||
|
message: This is a Matrix bridge relaybot and does not support direct chats
|
||||||
|
# List of users to invite to all group chat portals created by the bridge.
|
||||||
|
group_chat_invite: []
|
||||||
|
# Whether or not the relaybot should not bridge events in unbridged group chats.
|
||||||
|
# If false, portals will be created when the relaybot receives messages, just like normal
|
||||||
|
# users. This behavior is usually not desirable, as it interferes with manually bridging
|
||||||
|
# the chat to another room.
|
||||||
|
ignore_unbridged_group_chat: true
|
||||||
# Whether or not to allow creating portals from Telegram.
|
# Whether or not to allow creating portals from Telegram.
|
||||||
authless_portals: true
|
authless_portals: true
|
||||||
# Whether or not to allow Telegram group admins to use the bot commands.
|
# Whether or not to allow Telegram group admins to use the bot commands.
|
||||||
|
@ -102,9 +102,18 @@ matrix_mautrix_whatsapp_configuration_yaml: |
|
|||||||
# Whether or not the bridge should send a notice to the user's management room when it retries connecting.
|
# Whether or not the bridge should send a notice to the user's management room when it retries connecting.
|
||||||
# If false, it will only report when it stops retrying.
|
# If false, it will only report when it stops retrying.
|
||||||
report_connection_retry: true
|
report_connection_retry: true
|
||||||
# Number of seconds to wait for contacts and chats to be sent at startup before syncing.
|
# Maximum number of seconds to wait for chats to be sent at startup.
|
||||||
# If you have lots of chats, it might take more than a second.
|
# If this is too low and you have lots of chats, it could cause backfilling to fail.
|
||||||
contact_wait_delay: 1
|
chat_list_wait: 30
|
||||||
|
# Maximum number of seconds to wait to sync portals before force unlocking message processing.
|
||||||
|
# If this is too low and you have lots of chats, it could cause backfilling to fail.
|
||||||
|
portal_sync_wait: 600
|
||||||
|
|
||||||
|
# Whether or not to send call start/end notices to Matrix.
|
||||||
|
call_notices:
|
||||||
|
start: true
|
||||||
|
end: true
|
||||||
|
|
||||||
# Number of chats to sync for new users.
|
# Number of chats to sync for new users.
|
||||||
initial_chat_sync_count: 10
|
initial_chat_sync_count: 10
|
||||||
# Number of old messages to fill when creating new portal rooms.
|
# Number of old messages to fill when creating new portal rooms.
|
||||||
@ -123,6 +132,13 @@ matrix_mautrix_whatsapp_configuration_yaml: |
|
|||||||
# Whether or not to sync with custom puppets to receive EDUs that
|
# Whether or not to sync with custom puppets to receive EDUs that
|
||||||
# are not normally sent to appservices.
|
# are not normally sent to appservices.
|
||||||
sync_with_custom_puppets: true
|
sync_with_custom_puppets: true
|
||||||
|
# Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
|
||||||
|
#
|
||||||
|
# If set, custom puppets will be enabled automatically for local users
|
||||||
|
# instead of users having to find an access token and run `login-matrix`
|
||||||
|
# manually.
|
||||||
|
login_shared_secret: null
|
||||||
|
|
||||||
# Whether or not to invite own WhatsApp user's Matrix puppet into private
|
# Whether or not to invite own WhatsApp user's Matrix puppet into private
|
||||||
# chat portals when backfilling if needed.
|
# chat portals when backfilling if needed.
|
||||||
# This always uses the default puppet instead of custom puppets due to
|
# This always uses the default puppet instead of custom puppets due to
|
||||||
@ -133,6 +149,10 @@ matrix_mautrix_whatsapp_configuration_yaml: |
|
|||||||
# but causes room avatar/name bugs.
|
# but causes room avatar/name bugs.
|
||||||
private_chat_portal_meta: false
|
private_chat_portal_meta: false
|
||||||
|
|
||||||
|
# Allow invite permission for user. User can invite any bots to room with whatsapp
|
||||||
|
# users (private chat and groups)
|
||||||
|
allow_user_invite: false
|
||||||
|
|
||||||
# The prefix for commands. Only required in non-management rooms.
|
# The prefix for commands. Only required in non-management rooms.
|
||||||
command_prefix: "!wa"
|
command_prefix: "!wa"
|
||||||
|
|
||||||
@ -146,6 +166,26 @@ matrix_mautrix_whatsapp_configuration_yaml: |
|
|||||||
# mxid - Specific user
|
# mxid - Specific user
|
||||||
permissions:
|
permissions:
|
||||||
"{{ matrix_mautrix_whatsapp_homeserver_domain }}": user
|
"{{ matrix_mautrix_whatsapp_homeserver_domain }}": user
|
||||||
|
|
||||||
|
relaybot:
|
||||||
|
# Whether or not relaybot support is enabled.
|
||||||
|
enabled: false
|
||||||
|
# The management room for the bot. This is where all status notifications are posted and
|
||||||
|
# in this room, you can use `!wa <command>` instead of `!wa relaybot <command>`. Omitting
|
||||||
|
# the command prefix completely like in user management rooms is not possible.
|
||||||
|
management: !foo:example.com
|
||||||
|
# List of users to invite to all created rooms that include the relaybot.
|
||||||
|
invites: []
|
||||||
|
# The formats to use when sending messages to WhatsApp via the relaybot.
|
||||||
|
message_formats:
|
||||||
|
m.text: "<b>{{ .Sender.Displayname }}</b>: {{ .Message }}"
|
||||||
|
m.notice: "<b>{{ .Sender.Displayname }}</b>: {{ .Message }}"
|
||||||
|
m.emote: "* <b>{{ .Sender.Displayname }}</b> {{ .Message }}"
|
||||||
|
m.file: "<b>{{ .Sender.Displayname }}</b> sent a file"
|
||||||
|
m.image: "<b>{{ .Sender.Displayname }}</b> sent an image"
|
||||||
|
m.audio: "<b>{{ .Sender.Displayname }}</b> sent an audio file"
|
||||||
|
m.video: "<b>{{ .Sender.Displayname }}</b> sent a video"
|
||||||
|
m.location: "<b>{{ .Sender.Displayname }}</b> sent a location"
|
||||||
# Logging config.
|
# Logging config.
|
||||||
logging:
|
logging:
|
||||||
# The directory for log files. Will be created if not found.
|
# The directory for log files. Will be created if not found.
|
||||||
|
Loading…
Reference in New Issue
Block a user