From ec8a379e1dc7d962d53ec0520fdc1eaf8df69057 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Dec 2016 14:16:58 +0000 Subject: [PATCH] Set forwarded header --- src/freedombone-app-matrix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 9f6e919d..b62e175c 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -54,29 +54,29 @@ function matrix_nginx { matrix_identityserver_proxy_str=' \ location /matrixid { \ proxy_pass http://localhost:8081; \ - proxy_buffering on; \ + proxy_set_header X-Forwarded-For $remote_addr; \ }' matrix_proxy_str=' \ location /matrix { \ proxy_pass https://localhost:8448; \ - proxy_buffering on; \ + proxy_set_header X-Forwarded-For $remote_addr; \ }' turn_proxy_str=' \ location /turn { \ proxy_pass https://localhost:3478; \ - proxy_buffering on; \ + proxy_set_header X-Forwarded-For $remote_addr; \ }' if [[ $ONION_ONLY != 'no' ]]; then matrix_proxy_str=' \ location /matrix { \ proxy_pass http://localhost:8448; \ - proxy_buffering on; \ + proxy_set_header X-Forwarded-For $remote_addr; \ }' turn_proxy_str=' \ location /turn { \ proxy_pass http://localhost:3478; \ - proxy_buffering on; \ + proxy_set_header X-Forwarded-For $remote_addr; \ }' fi