matrix-docker-ansible-deploy/docs
Slavi Pantaleev 70fd20cef5 Add support for WeChat bridging
This is based on the PR (https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3241)
by Tobias Diez (https://github.com/tobiasdiez).

I've refactored some parts, made it more configurable, polished it up,
and it's integrated into the playbook now.

Both the WeChat bridge and WeChat agent appear to be working.
The WeChat bridge joins rooms and responds as expected.

That said, end-to-end testing (actually bridging to a WeChat account) has not been done yet.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/701

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3092

This is sponsored https://etke.cc/ work related to https://gitlab.com/etke.cc/ansible/-/issues/2

Squashed commit of the following:

commit fdd37f02472a0b83d61b4fac80650442f90e7629
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 21:05:53 2024 +0300

    Add documentation for WeChat bridge

commit 8426fc8b95bb160ea7f9659bd45bc59cf1326614
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:59:42 2024 +0300

    Rename directory for matrix_wechat_agent_container_src_files_path

commit da200df82bbc9153d307095dd90e4769c400ea1e
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:58:26 2024 +0300

    Make WeChat listen_secret configurable and auto-configured via matrix_homeserver_generic_secret_key

commit 4022cb1355828ac16af7d9228cb1066962bb35f5
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:54:56 2024 +0300

    Refactor install.yml for WeChat a bit (using blocks, etc.)

commit d07a39b4c4f6b93d04204e13e384086d5a242d52
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:52:35 2024 +0300

    Rename WeChat Agent configuration file

    This makes it more clear that it belongs to the agent.
    Otherwise, `config.yaml` and `configure.yaml` make you wonder.

commit ccca72f8d1e602f7c42f4bd552193afa153c9b9d
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:49:06 2024 +0300

    Move WeChat agent configuration to a template

commit a4047d94d8877b4095712dfc76ac3082a1edca28
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:47:17 2024 +0300

    Mount WeChat config as readonly and instruct bridge to not update it

commit bc0e89f345bf14bbdbfd574bb60d93918c2ac053
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 20:46:33 2024 +0300

    Sync WeChat config with upstream

    Brings up-to-date with:
    https://github.com/duo/matrix-wechat/commits/0.2.4/example-config.yaml

commit a46f5b9cbc8bf16042685a18c77d25a606bc8232
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 19:48:17 2024 +0300

    Rename some files

commit 3877679040cffc4ca6cccfa21a7335f8f796f06e
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 19:47:10 2024 +0300

    Update WeChat logging config

    This brings it up-to-date with what mautrix-go uses.
    Otherwise, on startup we see:

    > Migrating legacy log config

    .. and it gets migrated to what we've done here.

commit e3e95ab234651867c7a975a08455549b31db4172
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 19:43:37 2024 +0300

    Make sure matrix-wechat-agent runs as 1000:1000

    It needs to write stuff to `/home/user/.vnc`.

    `/home/user` is owned by `user:group` (`1000:1000`), so it cannot run
    any other way.

    Previously, if the `matrix` user was uid=1000 by chance, it would work,
    but that's pure luck.

commit 4d5748ae9b84c81d6b48b0a41b790339d9ac4724
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 18:57:09 2024 +0300

    Pin wechat and wechat-agent versions

commit 40d40009f19ebceed4126146cbb510a2c95af671
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 18:53:58 2024 +0300

    docker_image -> container_image for WeChat bridge

commit cc33aff592541913070d13288d17b04ed6243176
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 18:00:25 2024 +0300

    docker_src -> container_src in WeChat bridge

commit 42e6ae9a6483c8ca6d53b8052058d41d90d93797
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Mon Jun 3 17:54:24 2024 +0300

    matrix_go_wechat_ -> matrix_wechat_

    The bridge is written in Go, but does not include Go anywhere in its
    name. As such, it's mostly useless to use `matrix_go_wechat` as the
    prefix.

commit d6662a69d1916d215d5184320c36d2ef73afd3e9
Author: Tobias Diez <code@tobiasdiez.de>
Date:   Mon Mar 25 10:55:16 2024 +0800

    Add wechat bridge
2024-06-03 21:28:50 +03:00
..
assets
alternative-architectures.md
ansible.md Upgrade devture/ansible (2.14.5-r0-0 -> 2.16.1-r0-0) 2023-12-16 09:59:07 +02:00
configuring-captcha.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
configuring-dns.md refactor: update links to avoid future issue 2023-12-15 11:18:18 +01:00
configuring-playbook-appservice-draupnir-for-all.md Fix D4A Documentation flaw 2024-03-19 21:51:36 +01:00
configuring-playbook-backup-borg.md
configuring-playbook-base-domain-serving.md Fix incorrect variable name for base-domain root-path redirection 2024-02-03 18:48:24 +02:00
configuring-playbook-bot-buscarron.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
configuring-playbook-bot-chatgpt.md
configuring-playbook-bot-draupnir.md Improve Pantalaimon Support in Draupnir and add Mjolnir support 2024-03-24 21:55:21 +01:00
configuring-playbook-bot-go-neb.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
configuring-playbook-bot-honoroit.md
configuring-playbook-bot-matrix-registration-bot.md Fix typo in configuring-playbook-bot-matrix-registration-bot.md (#3137) 2024-01-28 06:56:43 +02:00
configuring-playbook-bot-matrix-reminder-bot.md
configuring-playbook-bot-maubot.md Update configuring-playbook-bot-maubot.md 2024-02-13 17:42:09 +01:00
configuring-playbook-bot-mjolnir.md Improve Pantalaimon Support in Draupnir and add Mjolnir support 2024-03-24 21:55:21 +01:00
configuring-playbook-bot-postmoogle.md
configuring-playbook-bridge-appservice-discord.md
configuring-playbook-bridge-appservice-irc.md
configuring-playbook-bridge-appservice-kakaotalk.md
configuring-playbook-bridge-appservice-slack.md Add puppeting option to matrix-bridge-appservice-slack 2024-05-14 16:39:16 +02:00
configuring-playbook-bridge-appservice-webhooks.md
configuring-playbook-bridge-beeper-linkedin.md
configuring-playbook-bridge-go-skype-bridge.md
configuring-playbook-bridge-heisenbridge.md
configuring-playbook-bridge-hookshot.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
configuring-playbook-bridge-matrix-bridge-sms.md
configuring-playbook-bridge-mautrix-discord.md
configuring-playbook-bridge-mautrix-facebook.md Add support for bridging to Facebook Messenger and Instagram via mautrix-meta 2024-02-19 10:25:00 +02:00
configuring-playbook-bridge-mautrix-gmessages.md
configuring-playbook-bridge-mautrix-googlechat.md
configuring-playbook-bridge-mautrix-hangouts.md
configuring-playbook-bridge-mautrix-instagram.md Add support for bridging to Facebook Messenger and Instagram via mautrix-meta 2024-02-19 10:25:00 +02:00
configuring-playbook-bridge-mautrix-meta-instagram.md Fix matrix_mautrix_meta_instagram_bridge_permissions_custom to use a dict 2024-04-04 11:04:03 +03:00
configuring-playbook-bridge-mautrix-meta-messenger.md Meta messenger documentation clarification 2024-04-04 10:00:40 +02:00
configuring-playbook-bridge-mautrix-signal.md Fix documentation bug in configuring-playbook-bridge-mautrix-signal.md 2024-02-20 19:20:25 +01:00
configuring-playbook-bridge-mautrix-slack.md
configuring-playbook-bridge-mautrix-telegram.md
configuring-playbook-bridge-mautrix-twitter.md
configuring-playbook-bridge-mautrix-whatsapp.md Update configuring-playbook-bridge-mautrix-whatsapp.md 2024-02-08 03:44:38 +00:00
configuring-playbook-bridge-mautrix-wsproxy.md
configuring-playbook-bridge-mx-puppet-discord.md
configuring-playbook-bridge-mx-puppet-groupme.md
configuring-playbook-bridge-mx-puppet-instagram.md
configuring-playbook-bridge-mx-puppet-skype.md
configuring-playbook-bridge-mx-puppet-slack.md
configuring-playbook-bridge-mx-puppet-steam.md
configuring-playbook-bridge-mx-puppet-twitter.md
configuring-playbook-bridge-wechat.md Add support for WeChat bridging 2024-06-03 21:28:50 +03:00
configuring-playbook-cactus-comments.md Add matrix-cactus-comments-client role 2024-01-09 09:53:01 +02:00
configuring-playbook-client-cinny.md
configuring-playbook-client-element.md refactor: update links to avoid future issue 2023-12-15 11:18:18 +01:00
configuring-playbook-client-hydrogen.md refactor: update links to avoid future issue 2023-12-15 11:18:18 +01:00
configuring-playbook-client-schildichat.md Update SchiliChat to v1.11.36 2024-02-26 14:25:04 +09:00
configuring-playbook-conduit.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
configuring-playbook-dendrite.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
configuring-playbook-dimension.md Add new global variable for controlling federation regardless of homeserver implementation 2024-01-14 11:52:40 +02:00
configuring-playbook-dynamic-dns.md
configuring-playbook-email2matrix.md Adjust email2matrix docs with regard to the homeserver container URL 2024-01-13 18:15:15 +02:00
configuring-playbook-email.md Replace matrix-mailer with an external role 2024-01-05 17:54:50 +02:00
configuring-playbook-etherpad.md Remove etherpad-proxy-connect role 2024-01-12 17:22:46 +02:00
configuring-playbook-external-postgres.md
configuring-playbook-federation.md Update configuring-playbook-federation.md 2024-02-25 09:20:11 +01:00
configuring-playbook-jitsi.md refactor: update links to avoid future issue 2023-12-15 11:18:18 +01:00
configuring-playbook-ldap-auth.md
configuring-playbook-ma1sd.md Move matrix-ma1sd to its own container network and add native Traefik support 2024-01-09 15:27:13 +02:00
configuring-playbook-matrix-corporal.md
configuring-playbook-matrix-ldap-registration-proxy.md Remove matrix_ldap_registration_proxy_container_additional_networks_custom mention in docs 2024-01-09 11:51:46 +02:00
configuring-playbook-matrix-media-repo.md Updated MMR docs with updated fields in main.yaml (#3047) 2023-12-18 11:01:59 +02:00
configuring-playbook-matrix-registration.md
configuring-playbook-mautrix-bridges.md docs: use available encryption vars instead of configuration extension 2024-03-24 03:02:11 +00:00
configuring-playbook-nginx.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
configuring-playbook-ntfy.md
configuring-playbook-own-webserver.md add missing ' in config 2024-01-24 19:22:35 +01:00
configuring-playbook-pantalaimon.md Update Pantalaimon docs page to mention Mjolnir 2024-03-25 07:06:52 +02:00
configuring-playbook-postgres-backup.md
configuring-playbook-prometheus-grafana.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
configuring-playbook-prometheus-nginxlog.md Remove matrix-homeserver-proxy role in favor of the new internal Traefik entrypoint 2024-01-14 10:53:14 +02:00
configuring-playbook-prometheus-postgres.md Update documentation related to variables for prometheus-node-exporter/prometheus-postgres-exporter metrics exposure 2024-01-12 18:04:18 +02:00
configuring-playbook-rageshake.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
configuring-playbook-rest-auth.md
configuring-playbook-riot-web.md Drop some matrix_nginx_proxy_proxy_riot_compat_* variables 2024-01-03 14:43:45 +02:00
configuring-playbook-s3-goofys.md
configuring-playbook-s3.md
configuring-playbook-shared-secret-auth.md
configuring-playbook-sliding-sync-proxy.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
configuring-playbook-ssl-certificates.md Remove tabs from YAML code snippets 2023-11-15 09:26:20 +02:00
configuring-playbook-sygnal.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
configuring-playbook-synapse-admin.md Add missing link to synapse config docs 2024-02-12 23:10:50 -05:00
configuring-playbook-synapse-auto-accept-invite.md Add Synapse module auto accept invite to rooms and direct messages (#3195) 2024-02-21 18:04:14 +02:00
configuring-playbook-synapse-auto-compressor.md
configuring-playbook-synapse-s3-storage-provider.md
configuring-playbook-synapse-simple-antispam.md
configuring-playbook-synapse.md Rework Synapse workers documentation 2024-01-20 12:41:21 +02:00
configuring-playbook-telemetry.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
configuring-playbook-traefik.md Add upstream proxy_protocol instructions to traefik (#3150) 2024-02-02 22:09:21 +02:00
configuring-playbook-turn.md Add lt-cred-mech authentication mechanism to Coturn 2024-02-18 09:52:00 +02:00
configuring-playbook-user-verification-service.md
configuring-playbook.md Add support for WeChat bridging 2024-06-03 21:28:50 +03:00
configuring-well-known.md Merge branch 'master' into bye-bye-nginx-proxy 2024-01-09 15:38:23 +02:00
container-images.md Update container-images.md to mention Draupnir 2024-02-11 23:28:45 +01:00
faq.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
getting-the-playbook.md
howto-server-delegation.md Remove all traces of matrix-nginx-proxy, add validation & uninstallation tasks 2024-01-14 18:42:14 +02:00
howto-srv-server-delegation.md Update SRV delegation docs 2024-02-10 10:18:46 +01:00
importing-postgres.md
importing-synapse-media-store.md
importing-synapse-sqlite.md
installing.md
maintenance-and-troubleshooting.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00
maintenance-checking-services.md
maintenance-migrating.md
maintenance-postgres.md Update maintenance-postgres.md 2024-05-05 08:53:18 +02:00
maintenance-synapse.md fix(docs): minor typo 2024-05-10 15:11:13 +02:00
maintenance-upgrading-services.md
obtaining-access-tokens.md
prerequisites.md Update supported distros list 2024-02-14 15:54:53 +02:00
README.md
registering-users.md
self-building.md Add Pantalaimon support 2024-03-24 18:35:34 +02:00
uninstalling.md
updating-users-passwords.md Replace (almost) all matrix-org/synapse references with element-hq/synapse 2024-01-17 08:02:47 +02:00