From a7f20354b2d821cd93d8fe6220863d24164a5756 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 26 Sep 2022 00:58:05 +0200 Subject: [PATCH] Fix #50 --- conf/nginx.conf | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index fb22fe4..8f13985 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,14 +1,15 @@ rewrite ^$ /; location ~ ^/$ { - default_type text/plain; - return 200 "This is where Dendrite is installed."; + default_type text/plain; + return 200 "This is where Dendrite is installed."; } location /_matrix { - proxy_pass http://localhost:__PORT__; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; - proxy_read_timeout 600; - client_max_body_size 100M; - more_set_headers "Access-Control-Allow-Origin: *"; + proxy_pass http://localhost:__PORT__; + more_set_headers "X-Forwarded-For: $remote_addr"; + more_set_headers "X-Real-IP: $remote_addr"; + more_set_headers "Host: $host"; + proxy_read_timeout 600; + client_max_body_size 100M; + more_set_headers "Access-Control-Allow-Origin: *"; }