nginx-rp matrix delegation/discovery : use = instead of ~

This commit is contained in:
Viyurz 2023-12-06 13:23:17 +00:00
parent b768b2a095
commit 5f1ba203f3

View file

@ -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;