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: *"; }