From d2298decc7f73331a5cddaa91d2c56d52d74f564 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 28 Oct 2020 21:15:22 +0100 Subject: Fix access to _synapse endpoints 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, 2 insertions(+), 6 deletions(-) diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index 11311f3..f0ddbec 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -7,9 +7,6 @@ nginx: - upstream matrix_backend: - server: 127.0.0.1:8449 - - upstream synapse_metrics: - - server: 127.0.0.1:9091 - - server: - server_name: matrix.kyriasis.com @@ -62,12 +59,11 @@ nginx: - proxy_set_header: X-Forwarded-For $remote_addr - proxy_set_header: Host $host - - location /_synapse: - - proxy_pass: http://synapse_metrics + - location /_synapse/: + - proxy_pass: https://matrix_backend - proxy_buffering: "off" - proxy_set_header: X-Forwarded-For $remote_addr - proxy_set_header: Host $host - - proxy_http_version: 1.1 - location /.well-known/acme-challenge: - root: /srv/http/ -- cgit v1.2.3-54-g00ecf