From 4ce4697bc543b0f82744e334dc18b05d5889f1d4 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 25 Aug 2022 16:38:40 +0200 Subject: [PATCH] Avoid duplicate NGINX locations --- conf/nginx.conf | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4d3d417..fb22fe4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,17 +4,6 @@ location ~ ^/$ { return 200 "This is where Dendrite is installed."; } -location /.well-known/matrix/server { - default_type application/json; - return 200 '{ "m.server": "__DOMAIN__:443" }'; - more_set_headers "Access-Control-Allow-Origin: *"; -} - -location /.well-known/matrix/client { - return 200 '{ "m.homeserver": { "base_url": "https://__DOMAIN__" } }'; - more_set_headers "Access-Control-Allow-Origin: *"; -} - location /_matrix { proxy_pass http://localhost:__PORT__; proxy_set_header X-Forwarded-For $remote_addr;