communication: fix well-known nginx regex escaping
This commit is contained in:
parent
9c60011261
commit
f1ca9d919d
@ -40,13 +40,13 @@ data:
|
|||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
# Some clients request a trailing slash; serve both.
|
# Some clients request a trailing slash; serve both.
|
||||||
location ~ ^/\\.well-known/matrix/client/?$ {
|
location ~ ^/\.well-known/matrix/client/?$ {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
add_header Access-Control-Allow-Origin "*" always;
|
add_header Access-Control-Allow-Origin "*" always;
|
||||||
try_files /.well-known/matrix/client =404;
|
try_files /.well-known/matrix/client =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/\\.well-known/matrix/server/?$ {
|
location ~ ^/\.well-known/matrix/server/?$ {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
add_header Access-Control-Allow-Origin "*" always;
|
add_header Access-Control-Allow-Origin "*" always;
|
||||||
try_files /.well-known/matrix/server =404;
|
try_files /.well-known/matrix/server =404;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user