From 62f5f3d2784b6753369fef263f304582bf9062d3 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 21 Mar 2019 19:34:08 +0100 Subject: nginx/matrix: Set static json string for well-known discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/matrix_kyriasis_com.sls | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nginx/matrix_kyriasis_com.sls') diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index 3f24061..8e9d38a 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -65,10 +65,8 @@ nginx: - location /.well-known/acme-challenge: - root: /srv/http/ - - location /.well-known/matrix/: - - proxy_pass: https://matrix.kyriasis.com:8448 - - proxy_buffering: "off" - - proxy_set_header: X-Forwarded-For $remote_addr - - proxy_set_header: Host $host + - location /.well-known/matrix/client: + - default_type: application/json + - return: 200 '{"m.homeserver": {"base_url": "https://matrix.kyriasis.com:8448/"}}' # vim: ft=yaml et: -- cgit v1.2.3-70-g09d2