From 4f2de63065d28ac451c87d119798bdabcf1ef0dd Mon Sep 17 00:00:00 2001 From: Thatoo Date: Mon, 5 Aug 2019 22:55:35 +0200 Subject: [PATCH] Create server_name.conf To allow the automatic well-known system for server-name detection instead of DNS record --- conf/server_name.conf | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 conf/server_name.conf diff --git a/conf/server_name.conf b/conf/server_name.conf new file mode 100644 index 0000000..82a92db --- /dev/null +++ b/conf/server_name.conf @@ -0,0 +1,5 @@ + location /.well-known/matrix/ { + return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}'; + add_header Content-Type application/json; + add_header Access-Control-Allow-Origin '*'; + }