From a890096313481a3070ece231f10a3990f8f9e6e8 Mon Sep 17 00:00:00 2001 From: PxBCPG Date: Sat, 6 May 2023 22:18:51 +0200 Subject: [PATCH 1/2] nginx config changes --- conf/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 98bafc3..8957d4a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -17,3 +17,13 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME cas_server.php; } } + + +location /_synapse/ { + proxy_pass http://localhost:__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 10M; +} From 3dbd81ed70b74d67a45af0bd68564093d7e90180 Mon Sep 17 00:00:00 2001 From: Josue-T Date: Wed, 10 May 2023 00:27:04 +0200 Subject: [PATCH 2/2] Update conf/nginx.conf --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8957d4a..94bc415 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,7 +19,7 @@ location __PATH__/ { } -location /_synapse/ { +location _synapse/ { proxy_pass http://localhost:__PORT__; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme;