rx300: update mautrix-whatsapp to 0.3.0

This commit is contained in:
Franzi 2022-03-19 07:02:11 +01:00
parent c983c50d21
commit 3e7e355dd6
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 52 additions and 42 deletions

View file

@ -1,6 +1,9 @@
homeserver: homeserver:
address: ${node.metadata['mautrix-whatsapp']['homeserver']['url']} address: ${node.metadata['mautrix-whatsapp']['homeserver']['url']}
domain: ${node.metadata['mautrix-whatsapp']['homeserver']['domain']} domain: ${node.metadata['mautrix-whatsapp']['homeserver']['domain']}
asmux: false
status_endpoint: null
message_send_checkpoint_endpoint: null
appservice: appservice:
address: http://${node.metadata['mautrix-whatsapp'].get('listen-addr', '127.0.0.1')}:${node.metadata['mautrix-whatsapp'].get('port', 20020)} address: http://${node.metadata['mautrix-whatsapp'].get('listen-addr', '127.0.0.1')}:${node.metadata['mautrix-whatsapp'].get('port', 20020)}
@ -8,23 +11,27 @@ appservice:
port: ${node.metadata['mautrix-whatsapp'].get('port', 20020)} port: ${node.metadata['mautrix-whatsapp'].get('port', 20020)}
database: database:
type: postgres type: postgres
uri: postgres://${node.metadata['mautrix-whatsapp']['database']['user']}:${node.metadata['mautrix-whatsapp']['database']['password']}@${node.metadata['mautrix-whatsapp']['database'].get('host', 'localhost')}/${node.metadata['mautrix-whatsapp']['database']['database']}?sslmode=disable 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
max_open_conns: 20 max_open_conns: 20
max_idle_conns: 2 max_idle_conns: 2
max_conn_idle_time: null
max_conn_lifetime: null
provisioning: provisioning:
prefix: /_matrix/provision/v1 prefix: /_matrix/provision/v1
% if node.metadata['mautrix-whatsapp']['provisioning']['enabled']: % if node.metadata.get('mautrix-whatsapp/provisioning/enabled'):
shared_secret: ${node.metadata['mautrix-whatsapp']['provisioning']['shared_secret']} shared_secret: ${node.metadata.get('mautrix-whatsapp/provisioning/shared_secret')}
% else: % else:
shared_secret: disable shared_secret: disable
% endif % endif
segment_key: null
id: whatsapp id: whatsapp
bot: bot:
username: whatsappbot username: whatsappbot
displayname: WhatsApp bridge bot displayname: WhatsApp bridge bot
avatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr avatar: mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr
as_token: ${node.metadata['mautrix-whatsapp']['as_token']} ephemeral_events: false
hs_token: ${node.metadata['mautrix-whatsapp']['hs_token']} as_token: ${node.metadata.get('mautrix-whatsapp/as_token')}
hs_token: ${node.metadata.get('mautrix-whatsapp/hs_token')}
metrics: metrics:
enabled: false enabled: false
@ -32,43 +39,52 @@ metrics:
whatsapp: whatsapp:
os_name: Mautrix-WhatsApp bridge os_name: Mautrix-WhatsApp bridge
browser_name: mx-wa browser_name: unknown
bridge: bridge:
username_template: whatsapp_{{.}} username_template: whatsapp_{{.}}
displayname_template: "{{if .Notify}}{{.Notify}}{{else}}{{.Jid}}{{end}} (WhatsApp)" displayname_template: "{{if .PushName}}{{.PushName}}{{else if .BusinessName}}{{.BusinessName}}{{else}}{{.JID}}{{end}} (WhatsApp)"
community_template: whatsapp_{{.Localpart}}={{.Server}} personal_filtering_spaces: true
connection_timeout: 20
fetch_message_on_timeout: false
delivery_receipts: true delivery_receipts: true
login_qr_regen_count: 2 call_start_notices: true
max_connection_attempts: 3 identity_change_notices: true
connection_retry_delay: -1
report_connection_retry: true
chat_list_wait: 30
portal_sync_wait: 600
user_message_buffer: 1024
portal_message_buffer: 128 portal_message_buffer: 128
call_notices: history_sync:
start: true create_portals: true
end: true max_age: ${node.metadata.get('mautrix-whatsapp/sync_max_days', 7)*24*60*60}
initial_chat_sync_count: 20 backfill: false
initial_history_fill_count: 50 double_puppet_backfill: false
initial_history_disable_notifications: false request_full_sync: false
recovery_chat_sync_limit: -1 user_avatar_sync: true
recovery_history_backfill: true bridge_matrix_leave: true
sync_max_chat_age: ${node.metadata['mautrix-whatsapp'].get('sync_max_days', 7)*24*60*60}
sync_with_custom_puppets: true sync_with_custom_puppets: true
sync_direct_chat_list: false sync_direct_chat_list: false
default_bridge_receipts: true default_bridge_receipts: true
default_bridge_presence: true default_bridge_presence: true
login_shared_secret: null send_presence_on_typing: false
invite_own_puppet_for_backfilling: true force_active_delivery_receipts: false
private_chat_portal_meta: false double_puppet_allow_discovery: false
private_chat_portal_meta: true
bridge_notices: true
resend_bridge_info: false resend_bridge_info: false
mute_bridging: false
archive_tag: "m.lowpriority"
pinned_tag: null
tag_only_on_create: false
enable_status_broadcast: true
mute_status_broadcast: true
whatsapp_thumbnail: false whatsapp_thumbnail: false
allow_user_invite: false allow_user_invite: false
federate_rooms: false
disappearing_messages_in_groups: true
disable_bridge_alerts: false
url_previews: false
command_prefix: "!wa" command_prefix: "!wa"
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: ""
encryption: encryption:
allow: false # requires login_shared_secret to be set allow: false # requires login_shared_secret to be set
default: false default: false
@ -77,18 +93,12 @@ bridge:
require_cross_signing: false require_cross_signing: false
require_verification: true require_verification: true
permissions: permissions:
% for user, permission in node.metadata['mautrix-whatsapp']['permissions'].items(): % for user, permission in node.metadata.get('mautrix-whatsapp/permissions').items():
${user}: ${permission} ${user}: ${permission}
% endfor % endfor
relaybot: relay:
enabled: false enabled: false
management: "!whatsapp-relaybot:${node.metadata['mautrix-whatsapp']['homeserver']['domain']}" admin_only: false
invites:
% for user, permission in node.metadata['mautrix-whatsapp']['permissions'].items():
% if permission > 50:
- ${user}
% endif
% endfor
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.notice: "<b>{{ .Sender.Displayname }}</b>: {{ .Message }}"
@ -104,5 +114,5 @@ logging:
file_name_format: null file_name_format: null
file_date_format: 2006-01-02 file_date_format: 2006-01-02
file_mode: 0600 file_mode: 0600
timestamp_format: null timestamp_format: ""
print_level: info print_level: info

View file

@ -244,14 +244,14 @@ nodes['rx300'] = {
}, },
}, },
'mautrix-whatsapp': { 'mautrix-whatsapp': {
'version': 'v0.2.4', 'version': 'v0.3.0',
'sha1': 'f997ff0662c903c4d832419ace108f4110bd5b08', 'sha1': '10d65afccb4e7e477125310088022a137a4f0589',
'homeserver': { 'homeserver': {
'domain': 'franzi.business', 'domain': 'franzi.business',
'url': 'https://matrix.franzi.business', 'url': 'https://matrix.franzi.business',
}, },
'permissions': { 'permissions': {
"'@kunsi:franzi.business'": 100, "'@kunsi:franzi.business'": 'admin',
}, },
}, },
'miniflux': { 'miniflux': {