From 1b244d9543c0051b83658f100b25904342d41ff8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 24 May 2021 12:08:52 -0400 Subject: [PATCH] add Matrix client homeserver delegation --- nginx/nginx.conf | 5 +++++ static/.well-known/matrix/client | 1 + 2 files changed, 6 insertions(+) create mode 100644 static/.well-known/matrix/client 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