From 7c9f5b75f52388f098db2d75bffe8126147e0ff2 Mon Sep 17 00:00:00 2001 From: Emanuele Rocca Date: Fri, 4 Jul 2025 19:51:30 +0200 Subject: [PATCH] Update docs to ensure /.well-known/ is proxied too The following URLs need to be proxied as well: https://example.org/.well-known/matrix/server https://example.org/.well-known/matrix/client --- docs/deploying/generic.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/deploying/generic.md b/docs/deploying/generic.md index 1bda1cac..07bbb3a0 100644 --- a/docs/deploying/generic.md +++ b/docs/deploying/generic.md @@ -163,6 +163,8 @@ ServerName your.server.name # EDIT THIS AllowEncodedSlashes NoDecode ProxyPass /_matrix/ http://127.0.0.1:6167/_matrix/ timeout=300 nocanon ProxyPassReverse /_matrix/ http://127.0.0.1:6167/_matrix/ +ProxyPass /.well-known/ http://127.0.0.1:6167/.well-known/ timeout=300 nocanon +ProxyPassReverse /.well-known/ http://127.0.0.1:6167/.well-known/ ``` @@ -184,6 +186,7 @@ Create `/etc/caddy/conf.d/conduit_caddyfile` and enter this (substitute for your ```caddy your.server.name, your.server.name:8448 { reverse_proxy /_matrix/* 127.0.0.1:6167 + reverse_proxy /.well-known/* 127.0.0.1:6167 } ``` @@ -210,7 +213,7 @@ server { # Increase this to allow posting large files such as videos client_max_body_size 20M; - location /_matrix/ { + location ~ ^/(_matrix|.well-known)/ { proxy_pass http://127.0.0.1:6167; proxy_set_header Host $host; proxy_buffering off;