nginx-rp matrix delegation/discovery : use = instead of ~
This commit is contained in:
parent
b768b2a095
commit
5f1ba203f3
1 changed files with 2 additions and 2 deletions
|
@ -188,12 +188,12 @@ server {
|
|||
|
||||
server_name viyurz.fr;
|
||||
|
||||
location ~ ^/.well-known/matrix/server$ {
|
||||
location = /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
return 200 '{ "m.server": "matrix.viyurz.fr:443" }';
|
||||
}
|
||||
|
||||
location ~ ^/.well-known/matrix/client$ {
|
||||
location = /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
||||
|
|
Loading…
Reference in a new issue