From b13d6c9e172c086f7f69cbec1f7b15827b862ddb Mon Sep 17 00:00:00 2001 From: bprieshof Date: Fri, 4 Oct 2019 11:19:08 +0200 Subject: [PATCH] Disabled firewall rule Netdata NGINX-Installer --- NGINX-Installer.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/NGINX-Installer.sh b/NGINX-Installer.sh index f720fb1..2fe337b 100644 --- a/NGINX-Installer.sh +++ b/NGINX-Installer.sh @@ -98,7 +98,6 @@ newaliases apt install -y netdata sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/g' /etc/netdata/health_alarm_notify.conf - ufw allow 19999/tcp sed -i 's+#netdata here+location = /netdata {\n return 301 /netdata/;\n }\n\n location ~ /netdata/(?.*) {\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 disable netdata