Onion site settings

This commit is contained in:
Bob Mottram 2016-11-06 15:22:08 +00:00
parent f75111aff1
commit bdf88572e8
1 changed files with 6 additions and 4 deletions

View File

@ -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