summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx/nginx.conf4
-rw-r--r--static/.well-known/matrix/server1
2 files changed, 5 insertions, 0 deletions
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