2018-08-12 22:00:23 +00:00
|
|
|
# Homeserver details.
|
|
|
|
homeserver:
|
2019-03-13 22:38:11 +00:00
|
|
|
# The address that this appservice can use to connect to the homeserver.
|
2019-11-10 19:22:11 +00:00
|
|
|
address: https://example.com
|
2019-03-13 22:38:11 +00:00
|
|
|
# The domain of the homeserver (for MXIDs, etc).
|
2019-11-10 19:22:11 +00:00
|
|
|
domain: example.com
|
2018-08-12 22:00:23 +00:00
|
|
|
|
2022-10-21 22:27:15 +00:00
|
|
|
# What software is the homeserver running?
|
|
|
|
# Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
|
|
|
|
software: standard
|
|
|
|
# The URL to push real-time bridge status to.
|
2023-03-20 00:31:16 +00:00
|
|
|
# If set, the bridge will make POST requests to this URL whenever a user's GroupMe connection state changes.
|
2022-10-21 22:27:15 +00:00
|
|
|
# The bridge will use the appservice as_token to authorize requests.
|
|
|
|
status_endpoint: null
|
|
|
|
# Endpoint for reporting per-message status.
|
|
|
|
message_send_checkpoint_endpoint: null
|
|
|
|
# Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
|
|
|
|
async_media: false
|
|
|
|
|
2018-08-12 22:00:23 +00:00
|
|
|
# Application service host/registration related details.
|
|
|
|
# Changing these values requires regeneration of the registration.
|
|
|
|
appservice:
|
2019-03-13 22:38:11 +00:00
|
|
|
# The address that the homeserver can use to connect to this appservice.
|
2022-10-21 21:05:58 +00:00
|
|
|
address: http://localhost:29328
|
2018-08-12 22:00:23 +00:00
|
|
|
|
2019-03-13 22:38:11 +00:00
|
|
|
# The hostname and port where this appservice should listen.
|
|
|
|
hostname: 0.0.0.0
|
2022-10-21 22:27:15 +00:00
|
|
|
port: 29328
|
2018-08-12 22:00:23 +00:00
|
|
|
|
2019-03-13 22:38:11 +00:00
|
|
|
# Database config.
|
|
|
|
database:
|
2023-03-20 00:31:16 +00:00
|
|
|
# The database type. "sqlite3-fk-wal" and "postgres" are supported.
|
2021-03-03 01:54:30 +00:00
|
|
|
type: postgres
|
2019-03-13 22:38:11 +00:00
|
|
|
# The database URI.
|
2023-03-20 00:31:16 +00:00
|
|
|
# SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
|
|
|
|
# https://github.com/mattn/go-sqlite3#connection-string
|
2020-04-12 07:41:53 +00:00
|
|
|
# Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
|
2022-10-21 22:27:15 +00:00
|
|
|
# To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
|
2021-03-03 01:54:30 +00:00
|
|
|
uri: postgres://user:password@host/database?sslmode=disable
|
2019-05-17 20:33:27 +00:00
|
|
|
# Maximum number of connections. Mostly relevant for Postgres.
|
|
|
|
max_open_conns: 20
|
|
|
|
max_idle_conns: 2
|
2022-10-21 22:27:15 +00:00
|
|
|
# Maximum connection idle time and lifetime before they're closed. Disabled if null.
|
|
|
|
# Parsed with https://pkg.go.dev/time#ParseDuration
|
|
|
|
max_conn_idle_time: null
|
|
|
|
max_conn_lifetime: null
|
2020-02-09 18:32:14 +00:00
|
|
|
|
2019-03-13 22:38:11 +00:00
|
|
|
# The unique ID of this appservice.
|
2021-03-03 01:54:30 +00:00
|
|
|
id: groupme
|
2019-03-13 22:38:11 +00:00
|
|
|
# Appservice bot details.
|
|
|
|
bot:
|
|
|
|
# Username of the appservice bot.
|
2021-03-03 01:54:30 +00:00
|
|
|
username: groupmebot
|
2019-03-13 22:38:11 +00:00
|
|
|
# Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
|
|
|
|
# to leave display name/avatar as-is.
|
2021-03-03 01:54:30 +00:00
|
|
|
displayname: GroupMe bridge bot
|
2023-03-20 00:31:16 +00:00
|
|
|
avatar: mxc://nevarro.space/eoAJPcSuTEvffoNycrXjvsmj
|
|
|
|
|
|
|
|
# Whether or not to receive ephemeral events via appservice transactions.
|
|
|
|
# Requires MSC2409 support (i.e. Synapse 1.22+).
|
|
|
|
ephemeral_events: true
|
2018-08-12 22:00:23 +00:00
|
|
|
|
2019-03-13 22:38:11 +00:00
|
|
|
# Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
|
|
|
|
as_token: "This value is generated when generating the registration"
|
|
|
|
hs_token: "This value is generated when generating the registration"
|
2018-08-12 22:00:23 +00:00
|
|
|
|
2022-10-21 22:27:15 +00:00
|
|
|
# Segment API key to track some events, like provisioning API login and encryption errors.
|
|
|
|
segment_key: null
|
|
|
|
|
2021-03-03 01:54:30 +00:00
|
|
|
# Metrics not yet tested!
|
2020-06-17 14:50:06 +00:00
|
|
|
metrics:
|
|
|
|
# Whether or not to enable prometheus metrics
|
|
|
|
enabled: false
|
|
|
|
# IP and port where the metrics listener should be. The path is always /metrics
|
|
|
|
listen: 127.0.0.1:8001
|
|
|
|
|
2022-10-21 19:02:33 +00:00
|
|
|
# GroupMe configuration
|
|
|
|
groupme:
|
|
|
|
# GroupMe connection timeout in seconds.
|
|
|
|
connection_timeout: 20
|
|
|
|
# If GroupMe doesn't respond within connection_timeout, should the bridge
|
|
|
|
# try to fetch the message to see if it was actually bridged? Use this if
|
|
|
|
# you have problems with sends timing out but actually succeeding.
|
|
|
|
fetch_message_on_timeout: false
|
|
|
|
|
2019-04-06 19:41:25 +00:00
|
|
|
# Bridge config
|
2018-08-12 22:00:23 +00:00
|
|
|
bridge:
|
2023-03-20 00:31:16 +00:00
|
|
|
# Localpart template of MXIDs for GroupMe users.
|
|
|
|
# {{.}} is replaced with the phone number of the GroupMe user.
|
2021-03-03 01:54:30 +00:00
|
|
|
username_template: groupme_{{.}}
|
|
|
|
# Displayname template for GroupMe users.
|
|
|
|
# {{call .UserID.String}} - the number GroupMe assigns to the user
|
|
|
|
# {{.Nickname}} - the nickname in that room
|
|
|
|
# {{.ImageURL}} - User's avatar URL is available but irrelevant here
|
2023-09-07 03:17:06 +00:00
|
|
|
displayname_template: "{{if .Name}}{{.Name}}{{else}}{{.GMID}}{{end}} (GM)"
|
2022-10-21 19:02:33 +00:00
|
|
|
# Should the bridge create a space for each logged-in user and add bridged rooms to it?
|
|
|
|
# Users who logged in before turning this on should run `!wa sync space` to create and fill the space for the first time.
|
|
|
|
personal_filtering_spaces: false
|
2023-03-20 00:31:16 +00:00
|
|
|
# Should the bridge send a read receipt from the bridge bot when a message has been sent to GroupMe?
|
2020-05-25 08:17:47 +00:00
|
|
|
delivery_receipts: false
|
2022-10-21 19:02:33 +00:00
|
|
|
# Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
|
|
|
|
message_status_events: false
|
|
|
|
# Whether the bridge should send error notices via m.notice events when a message fails to bridge.
|
|
|
|
message_error_notices: true
|
2021-03-03 01:54:30 +00:00
|
|
|
|
2019-05-17 20:33:27 +00:00
|
|
|
# Maximum number of times to retry connecting on connection error.
|
|
|
|
max_connection_attempts: 3
|
2019-05-28 11:09:49 +00:00
|
|
|
# Number of seconds to wait between connection attempts.
|
|
|
|
# Negative numbers are exponential backoff: -connection_retry_delay + 1 + 2^attempts
|
|
|
|
connection_retry_delay: -1
|
2019-05-17 20:33:27 +00:00
|
|
|
# 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.
|
|
|
|
report_connection_retry: true
|
2019-08-24 21:25:29 +00:00
|
|
|
# Maximum number of seconds to wait for chats to be sent at startup.
|
|
|
|
# If this is too low and you have lots of chats, it could cause backfilling to fail.
|
2019-08-30 17:57:08 +00:00
|
|
|
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
|
2020-07-23 17:10:21 +00:00
|
|
|
user_message_buffer: 1024
|
|
|
|
portal_message_buffer: 128
|
2019-05-15 21:18:43 +00:00
|
|
|
|
2019-08-24 19:42:03 +00:00
|
|
|
# Whether or not to send call start/end notices to Matrix.
|
2021-03-03 01:54:30 +00:00
|
|
|
# N/A GroupMe
|
2019-08-24 19:42:03 +00:00
|
|
|
call_notices:
|
|
|
|
start: true
|
|
|
|
end: true
|
|
|
|
|
2019-05-22 13:46:18 +00:00
|
|
|
# Number of chats to sync for new users.
|
2021-03-03 01:54:30 +00:00
|
|
|
initial_chat_sync_count: 5
|
2019-05-22 13:46:18 +00:00
|
|
|
# Number of old messages to fill when creating new portal rooms.
|
2021-03-03 01:54:30 +00:00
|
|
|
initial_history_fill_count: 100
|
2020-06-08 17:51:24 +00:00
|
|
|
# Whether or not notifications should be turned off while filling initial history.
|
|
|
|
# Only applicable when using double puppeting.
|
|
|
|
initial_history_disable_notifications: false
|
2019-05-22 13:46:18 +00:00
|
|
|
# Maximum number of chats to sync when recovering from downtime.
|
|
|
|
# Set to -1 to sync all new chats during downtime.
|
|
|
|
recovery_chat_sync_limit: -1
|
|
|
|
# Whether or not to sync history when recovering from downtime.
|
|
|
|
recovery_history_backfill: true
|
2019-05-23 17:25:46 +00:00
|
|
|
# Maximum number of seconds since last message in chat to skip
|
|
|
|
# syncing the chat in any case. This setting will take priority
|
|
|
|
# over both recovery_chat_sync_limit and initial_chat_sync_count.
|
|
|
|
# Default is 3 days = 259200 seconds
|
|
|
|
sync_max_chat_age: 259200
|
2019-05-22 13:46:18 +00:00
|
|
|
|
2019-05-23 23:33:26 +00:00
|
|
|
# Whether or not to sync with custom puppets to receive EDUs that
|
|
|
|
# are not normally sent to appservices.
|
|
|
|
sync_with_custom_puppets: true
|
2020-08-22 10:07:55 +00:00
|
|
|
# Whether or not to update the m.direct account data event when double puppeting is enabled.
|
|
|
|
# Note that updating the m.direct event is not atomic (except with mautrix-asmux)
|
|
|
|
# and is therefore prone to race conditions.
|
|
|
|
sync_direct_chat_list: false
|
2020-07-10 13:26:55 +00:00
|
|
|
# When double puppeting is enabled, users can use `!wa toggle` to change whether or not
|
|
|
|
# presence and read receipts are bridged. These settings set the default values.
|
|
|
|
# Existing users won't be affected when these are changed.
|
|
|
|
default_bridge_receipts: true
|
|
|
|
default_bridge_presence: true
|
2019-12-30 18:21:04 +00:00
|
|
|
# Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
|
2023-09-12 02:58:26 +00:00
|
|
|
|
|
|
|
login_shared_secret_map:
|
|
|
|
example.com: null
|
2019-12-30 18:21:04 +00:00
|
|
|
#
|
|
|
|
# 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
|
2019-05-23 23:33:26 +00:00
|
|
|
|
2023-03-20 00:31:16 +00:00
|
|
|
# Whether or not to invite own GroupMe user's Matrix puppet into private
|
2019-06-01 17:03:29 +00:00
|
|
|
# chat portals when backfilling if needed.
|
|
|
|
# This always uses the default puppet instead of custom puppets due to
|
|
|
|
# rate limits and timestamp massaging.
|
|
|
|
invite_own_puppet_for_backfilling: true
|
|
|
|
# Whether or not to explicitly set the avatar and room name for private
|
|
|
|
# chat portal rooms. This can be useful if the previous field works fine,
|
|
|
|
# but causes room avatar/name bugs.
|
|
|
|
private_chat_portal_meta: false
|
2020-06-15 17:28:04 +00:00
|
|
|
# Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
|
|
|
|
# This field will automatically be changed back to false after it,
|
|
|
|
# except if the config file is not writable.
|
|
|
|
resend_bridge_info: false
|
2019-06-01 17:03:29 +00:00
|
|
|
|
2023-03-20 00:31:16 +00:00
|
|
|
# Whether or not thumbnails from GroupMe should be sent.
|
2020-06-10 12:26:14 +00:00
|
|
|
# They're disabled by default due to very low resolution.
|
2023-03-20 00:31:16 +00:00
|
|
|
groupme_thumbnail: false
|
2020-06-10 12:26:14 +00:00
|
|
|
|
2023-03-20 00:31:16 +00:00
|
|
|
# Allow invite permission for user. User can invite any bots to room with GroupMe
|
2019-07-16 09:16:17 +00:00
|
|
|
# users (private chat and groups)
|
|
|
|
allow_user_invite: false
|
|
|
|
|
2019-03-13 22:38:11 +00:00
|
|
|
# The prefix for commands. Only required in non-management rooms.
|
2021-03-03 01:54:30 +00:00
|
|
|
command_prefix: "!gm"
|
2018-08-16 21:11:28 +00:00
|
|
|
|
2022-10-21 22:27:15 +00:00
|
|
|
# Messages sent upon joining a management room.
|
|
|
|
# Markdown is supported. The defaults are listed below.
|
|
|
|
management_room_text:
|
|
|
|
# Sent when joining a room.
|
|
|
|
welcome: "Hello, I'm a GroupMe bridge bot."
|
|
|
|
# Sent when joining a management room and the user is already logged in.
|
|
|
|
welcome_connected: "Use `help` for help."
|
|
|
|
# Sent when joining a management room and the user is not logged in.
|
|
|
|
welcome_unconnected: "Use `help` for help or `login` to log in."
|
|
|
|
# Optional extra text sent when joining a management room.
|
|
|
|
additional_help: ""
|
|
|
|
|
|
|
|
# End-to-bridge encryption support options.
|
2020-05-08 23:03:59 +00:00
|
|
|
#
|
2022-10-21 22:27:15 +00:00
|
|
|
# See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
|
2020-05-08 23:03:59 +00:00
|
|
|
encryption:
|
|
|
|
# Allow encryption, work in group chat rooms with e2ee enabled
|
|
|
|
allow: false
|
|
|
|
# Default to encryption, force-enable encryption in all portals the bridge creates
|
|
|
|
# This will cause the bridge bot to be in private chats for the encryption to work properly.
|
|
|
|
default: false
|
2022-10-21 22:27:15 +00:00
|
|
|
# Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
|
|
|
|
appservice: false
|
|
|
|
# Require encryption, drop any unencrypted messages.
|
|
|
|
require: false
|
|
|
|
# Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
|
|
|
|
# You must use a client that supports requesting keys from other users to use this feature.
|
|
|
|
allow_key_sharing: false
|
|
|
|
# What level of device verification should be required from users?
|
|
|
|
#
|
|
|
|
# Valid levels:
|
|
|
|
# unverified - Send keys to all device in the room.
|
|
|
|
# cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
|
|
|
|
# cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
|
|
|
|
# cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
|
|
|
|
# Note that creating user signatures from the bridge bot is not currently possible.
|
|
|
|
# verified - Require manual per-device verification
|
|
|
|
# (currently only possible by modifying the `trust` column in the `crypto_device` database table).
|
|
|
|
verification_levels:
|
2023-03-20 00:31:16 +00:00
|
|
|
# Minimum level for which the bridge should send keys to when bridging messages from GroupMe to Matrix.
|
2022-10-21 22:27:15 +00:00
|
|
|
receive: unverified
|
|
|
|
# Minimum level that the bridge should accept for incoming Matrix messages.
|
|
|
|
send: unverified
|
|
|
|
# Minimum level that the bridge should require for accepting key requests.
|
|
|
|
share: cross-signed-tofu
|
|
|
|
# Options for Megolm room key rotation. These options allow you to
|
|
|
|
# configure the m.room.encryption event content. See:
|
|
|
|
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
|
|
|
|
# more information about that event.
|
|
|
|
rotation:
|
|
|
|
# Enable custom Megolm room key rotation settings. Note that these
|
|
|
|
# settings will only apply to rooms created after this option is
|
|
|
|
# set.
|
|
|
|
enable_custom: false
|
|
|
|
# The maximum number of milliseconds a session should be used
|
|
|
|
# before changing it. The Matrix spec recommends 604800000 (a week)
|
|
|
|
# as the default.
|
|
|
|
milliseconds: 604800000
|
|
|
|
# The maximum number of messages that should be sent with a given a
|
|
|
|
# session before changing it. The Matrix spec recommends 100 as the
|
|
|
|
# default.
|
|
|
|
messages: 100
|
|
|
|
|
|
|
|
# Settings for provisioning API
|
|
|
|
provisioning:
|
|
|
|
# Prefix for the provisioning API paths.
|
|
|
|
prefix: /_matrix/provision/v1
|
|
|
|
# Shared secret for authentication. If set to "disable", the provisioning API will be disabled.
|
|
|
|
shared_secret: disable
|
2020-05-08 23:03:59 +00:00
|
|
|
|
2019-03-13 22:38:11 +00:00
|
|
|
# Permissions for using the bridge.
|
|
|
|
# Permitted values:
|
2019-11-10 19:22:11 +00:00
|
|
|
# relaybot - Talk through the relaybot (if enabled), no access otherwise
|
2023-03-20 00:31:16 +00:00
|
|
|
# user - Access to use the bridge to chat with a GroupMe account.
|
2019-03-13 22:38:11 +00:00
|
|
|
# admin - User level and some additional administration tools
|
|
|
|
# Permitted keys:
|
|
|
|
# * - All Matrix users
|
|
|
|
# domain - All users on that homeserver
|
|
|
|
# mxid - Specific user
|
|
|
|
permissions:
|
2019-11-10 19:22:11 +00:00
|
|
|
"*": relaybot
|
2019-03-13 22:38:11 +00:00
|
|
|
"example.com": user
|
|
|
|
"@admin:example.com": admin
|
2018-08-12 22:00:23 +00:00
|
|
|
|
2023-03-20 00:31:16 +00:00
|
|
|
# Logging config. See https://github.com/tulir/zeroconfig for details.
|
2018-08-12 22:00:23 +00:00
|
|
|
logging:
|
2023-03-20 00:31:16 +00:00
|
|
|
min_level: debug
|
|
|
|
writers:
|
|
|
|
- type: stdout
|
|
|
|
format: pretty-colored
|
|
|
|
- type: file
|
|
|
|
format: json
|
|
|
|
filename: ./logs/mautrix-groupme.log
|
|
|
|
max_size: 100
|
|
|
|
max_backups: 10
|
|
|
|
compress: true
|