communication: serve matrix well-known with trailing slash
This commit is contained in:
parent
db01ab02ef
commit
9c60011261
@ -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;
|
||||
}
|
||||
}
|
||||
---
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user