From 0be521076603da7b236591ff686b09496c009692 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 27 Sep 2022 23:40:58 +0200 Subject: [PATCH] Fix headers in nginx config --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c037f05..5757cd1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,8 @@ location ~ ^/$ { location /_matrix { proxy_pass http://localhost:__PORT__; - more_set_headers "X-Real-IP: $remote_addr"; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; proxy_read_timeout 600; client_max_body_size 100M; more_set_headers "Access-Control-Allow-Origin: *";