Don't use 0.0.0.0
This commit is contained in:
parent
eea614e263
commit
548cff74ce
|
@ -227,7 +227,7 @@ function install_mailpile {
|
||||||
echo 'User=mailpile';
|
echo 'User=mailpile';
|
||||||
echo 'Group=mailpile';
|
echo 'Group=mailpile';
|
||||||
echo "WorkingDirectory=/var/www/$MAILPILE_DOMAIN_NAME/mail";
|
echo "WorkingDirectory=/var/www/$MAILPILE_DOMAIN_NAME/mail";
|
||||||
echo "ExecStart=/var/www/$MAILPILE_DOMAIN_NAME/mail/mp --www=0.0.0.0:${MAILPILE_PORT} --wait";
|
echo "ExecStart=/var/www/$MAILPILE_DOMAIN_NAME/mail/mp --www=127.0.0.1:${MAILPILE_PORT} --wait";
|
||||||
echo 'Restart=always';
|
echo 'Restart=always';
|
||||||
echo 'RestartSec=10';
|
echo 'RestartSec=10';
|
||||||
echo '';
|
echo '';
|
||||||
|
|
|
@ -125,7 +125,7 @@ function matrix_nginx {
|
||||||
matrix_nginx_site=/etc/nginx/sites-available/$MATRIX_DOMAIN_NAME
|
matrix_nginx_site=/etc/nginx/sites-available/$MATRIX_DOMAIN_NAME
|
||||||
if [[ $ONION_ONLY == "no" ]]; then
|
if [[ $ONION_ONLY == "no" ]]; then
|
||||||
{ echo 'server {';
|
{ echo 'server {';
|
||||||
echo " listen 0.0.0.0:443;";
|
echo " listen 443;";
|
||||||
echo " server_name ${MATRIX_DOMAIN_NAME};";
|
echo " server_name ${MATRIX_DOMAIN_NAME};";
|
||||||
echo '';
|
echo '';
|
||||||
echo ' # Security'; } > $matrix_nginx_site
|
echo ' # Security'; } > $matrix_nginx_site
|
||||||
|
@ -154,7 +154,7 @@ function matrix_nginx {
|
||||||
echo '}';
|
echo '}';
|
||||||
echo '';
|
echo '';
|
||||||
echo 'server {';
|
echo 'server {';
|
||||||
echo " listen 0.0.0.0:${MATRIX_HTTP_PORT};";
|
echo " listen ${MATRIX_HTTP_PORT};";
|
||||||
echo " server_name ${MATRIX_DOMAIN_NAME};";
|
echo " server_name ${MATRIX_DOMAIN_NAME};";
|
||||||
echo '';
|
echo '';
|
||||||
echo ' # Security'; } >> $matrix_nginx_site
|
echo ' # Security'; } >> $matrix_nginx_site
|
||||||
|
|
Loading…
Reference in New Issue