diff --git a/nginx/nginx.conf b/nginx/nginx.conf index fd784def..1e17c39a 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -241,6 +241,11 @@ http { add_header Cache-Control "public, max-age=31536000, immutable"; } + location = /.well-known/matrix/client { + add_header Access-Control-Allow-Origin "*"; + default_type application/json; + } + location = /.well-known/matrix/server { default_type application/json; } diff --git a/static/.well-known/matrix/client b/static/.well-known/matrix/client new file mode 100644 index 00000000..367d6f7d --- /dev/null +++ b/static/.well-known/matrix/client @@ -0,0 +1 @@ +{"m.homeserver":{"base_url":"https://matrix.grapheneos.org"}} \ No newline at end of file