communication: serve matrix well-known with trailing slash

This commit is contained in:
Brad Stein 2025-12-31 19:13:08 -03:00
parent db01ab02ef
commit 9c60011261

View File

@ -39,14 +39,17 @@ data:
root /usr/share/nginx/html;
location = /.well-known/matrix/client {
# Some clients request a trailing slash; serve both.
location ~ ^/\\.well-known/matrix/client/?$ {
default_type application/json;
try_files $uri =404;
add_header Access-Control-Allow-Origin "*" always;
try_files /.well-known/matrix/client =404;
}
location = /.well-known/matrix/server {
location ~ ^/\\.well-known/matrix/server/?$ {
default_type application/json;
try_files $uri =404;
add_header Access-Control-Allow-Origin "*" always;
try_files /.well-known/matrix/server =404;
}
}
---