Update 'NGINX-Installer.sh'
This commit is contained in:
@@ -207,7 +207,7 @@ debconf-set-selections <<< "phpmyadmin phpmyadmin/mysql/app-pass password $passs
|
|||||||
debconf-set-selections <<< "phpmyadmin phpmyadmin/reconfigure-webserver multiselect"
|
debconf-set-selections <<< "phpmyadmin phpmyadmin/reconfigure-webserver multiselect"
|
||||||
apt install -y phpmyadmin
|
apt install -y phpmyadmin
|
||||||
# Redirect phpmyadmin -> database
|
# Redirect phpmyadmin -> database
|
||||||
ln -s /usr/share/phpmyadmin /var/www/"$domain"/html/database
|
ln -s /usr/share/phpmyadmin /var/www/"$domain"/database
|
||||||
|
|
||||||
##-------------##
|
##-------------##
|
||||||
# Postfix #
|
# Postfix #
|
||||||
@@ -230,14 +230,12 @@ newaliases
|
|||||||
# Netdata #
|
# Netdata #
|
||||||
##-------------##
|
##-------------##
|
||||||
|
|
||||||
if [ $netdata = 1 ]; then
|
|
||||||
apt install -y netdata
|
apt install -y netdata
|
||||||
sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/g' /etc/netdata/health_alarm_notify.conf
|
sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/g' /etc/netdata/health_alarm_notify.conf
|
||||||
ufw allow 19999/tcp
|
ufw allow 19999/tcp
|
||||||
sed -i 's+#netdata here+location = /netdata {\n return 301 /netdata/;\n }\n\n location ~ /netdata/(?<ndpath>.*) {\n proxy_redirect off;\n proxy_set_header Host \$host;\n proxy_set_header X-Forwarded-Host \$host;\n proxy_set_header X-Forwarded-Server \$host;\n proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;\n proxy_http_version 1.1;\n proxy_pass_request_headers on;\n proxy_set_header Connection "keep-alive";\n proxy_store off;\n proxy_pass http://netdata/\$ndpath\$is_args\$args;\n }+g' /etc/nginx/sites-available/"$domain"
|
sed -i 's+#netdata here+location = /netdata {\n return 301 /netdata/;\n }\n\n location ~ /netdata/(?<ndpath>.*) {\n proxy_redirect off;\n proxy_set_header Host \$host;\n proxy_set_header X-Forwarded-Host \$host;\n proxy_set_header X-Forwarded-Server \$host;\n proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;\n proxy_http_version 1.1;\n proxy_pass_request_headers on;\n proxy_set_header Connection "keep-alive";\n proxy_store off;\n proxy_pass http://netdata/\$ndpath\$is_args\$args;\n }+g' /etc/nginx/sites-available/"$domain"
|
||||||
# systemctl stop netdata
|
systemctl stop netdata
|
||||||
# systemctl disable netdata
|
systemctl disable netdata
|
||||||
fi
|
|
||||||
|
|
||||||
##---------------##
|
##---------------##
|
||||||
# Memcached #
|
# Memcached #
|
||||||
|
|||||||
Reference in New Issue
Block a user