From bdf88572e886d179f2a3344428649bf8849bb8cb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 6 Nov 2016 15:22:08 +0000 Subject: [PATCH] Onion site settings --- src/freedombone-app-mailpile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-mailpile b/src/freedombone-app-mailpile index 3ca64cbf..6761dc2e 100755 --- a/src/freedombone-app-mailpile +++ b/src/freedombone-app-mailpile @@ -220,8 +220,9 @@ function install_mailpile { function_check nginx_limits nginx_limits $MAILPILE_DOMAIN_NAME '15m' echo " proxy_pass http://localhost:${MAILPILE_PORT}/;" >> $mailpile_nginx_site - echo ' proxy_set_header Host $host;' >> $mailpile_nginx_site - echo ' proxy_buffering off;' >> $mailpile_nginx_site + echo ' proxy_set_header X-Forwarded-Host $host;' >> $mailpile_nginx_site + echo ' proxy_set_header X-Forwarded-Server $host;' >> $mailpile_nginx_site + echo ' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;' >> $mailpile_nginx_site echo ' }' >> $mailpile_nginx_site echo '}' >> $mailpile_nginx_site else @@ -245,8 +246,9 @@ function install_mailpile { function_check nginx_limits nginx_limits $MAILPILE_DOMAIN_NAME '15m' echo " proxy_pass http://localhost:${MAILPILE_PORT}/;" >> $mailpile_nginx_site - echo ' proxy_set_header Host $host;' >> $mailpile_nginx_site - echo ' proxy_buffering off;' >> $mailpile_nginx_site + echo ' proxy_set_header X-Forwarded-Host $host;' >> $mailpile_nginx_site + echo ' proxy_set_header X-Forwarded-Server $host;' >> $mailpile_nginx_site + echo ' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;' >> $mailpile_nginx_site echo ' }' >> $mailpile_nginx_site echo '}' >> $mailpile_nginx_site fi