diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index db4ad1c..d8fe386 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -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;