From 9aa7173819a6e0c637547c29ed15f1b609209313 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 25 Aug 2022 10:01:21 +0200 Subject: [PATCH] Implement server display name with its NGINX conf --- conf/server_name.conf | 16 ++++++++++++++++ 1 file changed, 16 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..951536b --- /dev/null +++ b/conf/server_name.conf @@ -0,0 +1,16 @@ +location /.well-known/matrix/server { + return 200 '{"m.server": "__DOMAIN__:__TLS_PORT__"}'; + add_header Content-Type application/json; + add_header Access-Control-Allow-Origin '*'; +} + +location /.well-known/matrix/client { + return 200 '{ + "m.homeserver": { "base_url": "https://__DOMAIN__" }, +# "im.vector.riot.jitsi": {"preferredDomain": "__JITSI_SERVER__"}, +# "im.vector.riot.e2ee": {"default": __E2E_ENABLED_BY_DEFAULT__ } + }'; + add_header Content-Type application/json; + add_header Access-Control-Allow-Origin '*'; +} +