diff --git a/roles/www/templates/matrix-delegation.json b/roles/www/templates/matrix-delegation.json deleted file mode 100644 index 9a49cc7..0000000 --- a/roles/www/templates/matrix-delegation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "m.server": "matrix.bitlair.nl" -} diff --git a/roles/www/templates/nginx-site.conf b/roles/www/templates/nginx-site.conf index f34edee..8a5255a 100644 --- a/roles/www/templates/nginx-site.conf +++ b/roles/www/templates/nginx-site.conf @@ -119,13 +119,6 @@ server { rewrite ^/Pages/(.*) https://$server_name/$1$args redirect; } - # Matrix realm delegation - location = /.well-known/matrix/server { - add_header "Content-Type" "application/json"; - add_header "Access-Control-Allow-Origin" "*"; - alias /opt/matrix-delegation.json; - } - location = /.well-known/security.txt { alias /opt/security.txt; } diff --git a/snippets/www-nginx.j2 b/snippets/www-nginx.j2 index a831121..07ac856 100644 --- a/snippets/www-nginx.j2 +++ b/snippets/www-nginx.j2 @@ -78,13 +78,6 @@ location /Pages/ { rewrite ^/Pages/(.*) https://$server_name/$1$args redirect; } -# Matrix realm delegation -location = /.well-known/matrix/server { - add_header "Content-Type" "application/json"; - add_header "Access-Control-Allow-Origin" "*"; - alias /opt/matrix-delegation.json; -} - location = /.well-known/security.txt { alias /opt/security.txt; }