The `ensure-matrix-users-created` tag (part of `just install-all` and `just setup-all`) starts services in the middle of a playbook run:
matrix-user-creator starts the homeserver (or Matrix Authentication Service) and matrix-bot-meowlnir starts itself (pulling in the homeserver and Traefik) before creating bots.
Both of these roles ran before container_socket_proxy and traefik.
On a host where those roles had not run yet (a fresh install, or one whose /var/lib/docker was wiped), this meant:
- the `traefik` and `matrix-container-socket-proxy` container networks did not exist yet,
so starting the homeserver (which joins the `traefik` network) and Traefik failed with "network ... not found"
- even with the networks in place, Traefik's configuration (including the internal Matrix Client API entrypoint
through which addons like Meowlnir reach the homeserver) was missing or stale
The playbook run would then block on the service start, waiting for these failing services' health checks.
Traefik and the container socket proxy do not depend on runtime state produced by other roles (their wiring only uses static variables),
and their install tasks do not start services, so they can safely run early.
They now run right after Postgres and Valkey, similar to how the MASH playbook orders them.
traefik_certs_dumper moves along with Traefik.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tuwunel has no `[global.blurhashing]` configuration section, so rendering it
(the default) only produced an "unknown config parameter" warning on every start.
The related variables are now reported as removed by the role's validation.
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5747
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synapse v1.165.0 deprecates the `livekit` MatrixRTC transport in favor of
the stable `m.livekit` one. Clients using the latter reach the LiveKit
authorization service through the homeserver, which needs the service
registered as an application service.
When Synapse is the homeserver, run LiveKit JWT Service as such:
register it with Synapse, enable MSC4502 and MSC4512 there, and advertise
`m.livekit` for the SFU the service issues tokens for. The `livekit`
transport stays advertised for clients which don't support `m.livekit`
yet. Other homeservers keep the legacy transport only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synapse v1.165.0 adds stable MatrixRTC transport discovery and deprecates
the `livekit` transport type in favor of `m.livekit`. Upstream recommends
advertising `m.livekit` for each LiveKit SFU, while keeping the matching
`livekit` entry (with the same `url`) for clients which still need it.
Setting the new `matrix_synapse_matrix_rtc_transports_livekit_sfu_url`
does exactly that. Leaving it empty keeps the previous legacy-only list.
`m.livekit` clients reach the LiveKit authorization service through the
homeserver, which requires the MSC4502 and MSC4512 experimental features.
These get their own variables, like the other flags.
Ref: https://element-hq.github.io/synapse/v1.165/upgrade.html#upgrading-to-v11650
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lk-jwt-service can run as an application service of the homeserver.
This is what serves the stable MatrixRTC LiveKit transport (`m.livekit`):
clients reach the service through the homeserver, which proxies the
`rtc/livekit` endpoints (MSC4512), and the service verifies room
membership through it (MSC4502).
The role now renders the registration file for this when
`matrix_livekit_jwt_service_appservice_enabled` is set. The service reads
its tokens from that same file, so both sides always agree on them.
Wiring the homeserver up is left to the playbook.
The Molecule scenario covers the registration, homeserver token checks
and membership-gated token requests through the proxied endpoint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>