From 8d875dc3c52edb901f0e13205f41dad639c39038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 24 Jan 2023 18:25:39 +0100 Subject: [PATCH] Update endpoint.nginx.conf --- conf/endpoint.nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/endpoint.nginx.conf b/conf/endpoint.nginx.conf index 3963200..3288035 100644 --- a/conf/endpoint.nginx.conf +++ b/conf/endpoint.nginx.conf @@ -1,10 +1,13 @@ -location /_synapse/admin { +location ~ ^(/_matrix|/_synapse/client) { + proxy_pass http://127.0.0.1:__SYNAPSE_PORT__; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $host; client_max_body_size 100M; + + proxy_http_version 1.1; more_set_headers "Access-Control-Allow-Origin: __DOMAIN__"; }