2020-12-31 11:18:34 +00:00
|
|
|
homeserver:
|
|
|
|
address: ${node.metadata['mautrix-whatsapp']['homeserver']['url']}
|
|
|
|
domain: ${node.metadata['mautrix-whatsapp']['homeserver']['domain']}
|
2022-03-19 06:02:11 +00:00
|
|
|
asmux: false
|
|
|
|
status_endpoint: null
|
|
|
|
message_send_checkpoint_endpoint: null
|
2020-12-31 11:18:34 +00:00
|
|
|
|
|
|
|
appservice:
|
|
|
|
address: http://${node.metadata['mautrix-whatsapp'].get('listen-addr', '127.0.0.1')}:${node.metadata['mautrix-whatsapp'].get('port', 20020)}
|
|
|
|
hostname: ${node.metadata['mautrix-whatsapp'].get('listen-addr', '127.0.0.1')}
|
|
|
|
port: ${node.metadata['mautrix-whatsapp'].get('port', 20020)}
|
|
|
|
database:
|
|
|
|
type: postgres
|
2022-03-19 06:02:11 +00:00
|
|
|
uri: postgres://${node.metadata.get('mautrix-whatsapp/database/user')}:${node.metadata.get('mautrix-whatsapp/database/password')}@${node.metadata.get('mautrix-whatsapp/database/host', 'localhost')}/${node.metadata.get('mautrix-whatsapp/database/database')}?sslmode=disable
|
2020-12-31 11:18:34 +00:00
|
|
|
max_open_conns: 20
|
|
|
|
max_idle_conns: 2
|
2022-03-19 06:02:11 +00:00
|
|
|
max_conn_idle_time: null
|
|
|
|
max_conn_lifetime: null
|
2020-12-31 11:18:34 +00:00
|
|
|
provisioning:
|
|
|
|
prefix: /_matrix/provision/v1
|
2022-03-19 06:02:11 +00:00
|
|
|
% if node.metadata.get('mautrix-whatsapp/provisioning/enabled'):
|
|
|
|
shared_secret: ${node.metadata.get('mautrix-whatsapp/provisioning/shared_secret')}
|
2020-12-31 11:18:34 +00:00
|
|
|
% else:
|
|
|
|
shared_secret: disable
|
|
|
|
% endif
|
2022-03-19 06:02:11 +00:00
|
|
|
segment_key: null
|
2020-12-31 11:18:34 +00:00
|
|
|
id: whatsapp
|
|
|
|
bot:
|
|
|
|
username: whatsappbot
|
|
|
|
displayname: WhatsApp bridge bot
|
|
|
|
avatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr
|
2022-03-19 06:02:11 +00:00
|
|
|
ephemeral_events: false
|
|
|
|
as_token: ${node.metadata.get('mautrix-whatsapp/as_token')}
|
|
|
|
hs_token: ${node.metadata.get('mautrix-whatsapp/hs_token')}
|
2020-12-31 11:18:34 +00:00
|
|
|
|
|
|
|
metrics:
|
|
|
|
enabled: false
|
|
|
|
listen: 127.0.0.1:8001
|
|
|
|
|
|
|
|
whatsapp:
|
|
|
|
os_name: Mautrix-WhatsApp bridge
|
2022-03-19 06:02:11 +00:00
|
|
|
browser_name: unknown
|
2020-12-31 11:18:34 +00:00
|
|
|
|
|
|
|
bridge:
|
|
|
|
username_template: whatsapp_{{.}}
|
2022-03-19 06:02:11 +00:00
|
|
|
displayname_template: "{{if .PushName}}{{.PushName}}{{else if .BusinessName}}{{.BusinessName}}{{else}}{{.JID}}{{end}} (WhatsApp)"
|
|
|
|
personal_filtering_spaces: true
|
2020-12-31 11:18:34 +00:00
|
|
|
delivery_receipts: true
|
2022-03-19 06:02:11 +00:00
|
|
|
call_start_notices: true
|
|
|
|
identity_change_notices: true
|
2020-12-31 11:18:34 +00:00
|
|
|
portal_message_buffer: 128
|
2022-03-19 06:02:11 +00:00
|
|
|
history_sync:
|
|
|
|
create_portals: true
|
|
|
|
max_age: ${node.metadata.get('mautrix-whatsapp/sync_max_days', 7)*24*60*60}
|
|
|
|
backfill: false
|
|
|
|
double_puppet_backfill: false
|
|
|
|
request_full_sync: false
|
|
|
|
user_avatar_sync: true
|
|
|
|
bridge_matrix_leave: true
|
2020-12-31 11:18:34 +00:00
|
|
|
sync_with_custom_puppets: true
|
|
|
|
sync_direct_chat_list: false
|
|
|
|
default_bridge_receipts: true
|
|
|
|
default_bridge_presence: true
|
2022-03-19 06:02:11 +00:00
|
|
|
send_presence_on_typing: false
|
|
|
|
force_active_delivery_receipts: false
|
|
|
|
double_puppet_allow_discovery: false
|
|
|
|
private_chat_portal_meta: true
|
|
|
|
bridge_notices: true
|
2020-12-31 11:18:34 +00:00
|
|
|
resend_bridge_info: false
|
2022-03-19 06:02:11 +00:00
|
|
|
mute_bridging: false
|
|
|
|
archive_tag: "m.lowpriority"
|
|
|
|
pinned_tag: null
|
|
|
|
tag_only_on_create: false
|
|
|
|
enable_status_broadcast: true
|
|
|
|
mute_status_broadcast: true
|
2020-12-31 11:18:34 +00:00
|
|
|
whatsapp_thumbnail: false
|
|
|
|
allow_user_invite: false
|
2022-03-19 06:02:11 +00:00
|
|
|
federate_rooms: false
|
|
|
|
disappearing_messages_in_groups: true
|
|
|
|
disable_bridge_alerts: false
|
|
|
|
url_previews: false
|
2020-12-31 11:18:34 +00:00
|
|
|
command_prefix: "!wa"
|
2022-03-19 06:02:11 +00:00
|
|
|
management_room_text:
|
|
|
|
welcome: "Hello, I'm a WhatsApp bridge bot."
|
|
|
|
welcome_connected: "Use `help` for help."
|
|
|
|
welcome_unconnected: "Use `help` for help or `login` to log in."
|
|
|
|
additional_help: ""
|
2020-12-31 11:18:34 +00:00
|
|
|
encryption:
|
|
|
|
allow: false # requires login_shared_secret to be set
|
|
|
|
default: false
|
|
|
|
key_sharing:
|
|
|
|
allow: false
|
|
|
|
require_cross_signing: false
|
|
|
|
require_verification: true
|
|
|
|
permissions:
|
2022-03-19 06:02:11 +00:00
|
|
|
% for user, permission in node.metadata.get('mautrix-whatsapp/permissions').items():
|
2020-12-31 11:18:34 +00:00
|
|
|
${user}: ${permission}
|
|
|
|
% endfor
|
2022-03-19 06:02:11 +00:00
|
|
|
relay:
|
2020-12-31 11:18:34 +00:00
|
|
|
enabled: false
|
2022-03-19 06:02:11 +00:00
|
|
|
admin_only: false
|
2020-12-31 11:18:34 +00:00
|
|
|
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:
|
|
|
|
directory: /opt/mautrix-whatsapp/logs
|
2021-01-02 12:59:47 +00:00
|
|
|
file_name_format: null
|
2020-12-31 11:18:34 +00:00
|
|
|
file_date_format: 2006-01-02
|
|
|
|
file_mode: 0600
|
2022-03-19 06:02:11 +00:00
|
|
|
timestamp_format: ""
|
2021-01-28 14:05:04 +00:00
|
|
|
print_level: info
|