From 05e1fa3546ec597abdc7da398bd4d80145fd53fe Mon Sep 17 00:00:00 2001 From: Antoine-Ali Zarrouk <3798576+sidewinder94@users.noreply.github.com> Date: Sat, 10 Feb 2024 10:18:46 +0100 Subject: [PATCH] Update SRV delegation docs The path rule was not working because for federation fo work it needs several endpoints. Two of them are not under /_matrix/federation : - /_matrix/key - /_matrix/media --- docs/howto-srv-server-delegation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/howto-srv-server-delegation.md b/docs/howto-srv-server-delegation.md index a5c1990de..ba45a1c09 100644 --- a/docs/howto-srv-server-delegation.md +++ b/docs/howto-srv-server-delegation.md @@ -27,7 +27,7 @@ Also, all instructions below are from an older version of the playbook and may n ```yaml # To serve the federation from any domain, as long as the path matches -matrix_synapse_container_labels_public_federation_api_traefik_rule: PathPrefix(`/_matrix/federation`) +matrix_synapse_container_labels_public_federation_api_traefik_rule: PathPrefix(`/_matrix/`) ``` This is because with SRV federation, some servers / tools (one of which being the federation tester) try to access the federation API using the resolved IP address instead of the domain name (or they are not using SNI). This change will make Traefik route all traffic for which the path match this rule go to the federation endpoint.