From 8e31124e3cfd547fb4d82db97c45e05e649095fc Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 24 May 2021 11:30:14 -0400 Subject: [PATCH] add Matrix homeserver delegation --- nginx/nginx.conf | 4 ++++ static/.well-known/matrix/server | 1 + 2 files changed, 5 insertions(+) create mode 100644 static/.well-known/matrix/server diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 42b0dfdd..fd784def 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -241,6 +241,10 @@ http { add_header Cache-Control "public, max-age=31536000, immutable"; } + location = /.well-known/matrix/server { + default_type application/json; + } + location ^~ /fonts/ { include snippets/security-headers.conf; add_header Cross-Origin-Resource-Policy "same-origin" always; diff --git a/static/.well-known/matrix/server b/static/.well-known/matrix/server new file mode 100644 index 00000000..744ba48d --- /dev/null +++ b/static/.well-known/matrix/server @@ -0,0 +1 @@ +{"m.server":"matrix.grapheneos.org:443"} \ No newline at end of file