From 4977de1d3329c86f090de6c8b29e8d0846995a7f Mon Sep 17 00:00:00 2001 From: Denis-Cosmin Nutiu Date: Mon, 13 Jun 2022 14:39:35 +0300 Subject: [PATCH] Fix grafana install scripts --- grafana/grafana.ini | 2 +- grafana/install.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/grafana/grafana.ini b/grafana/grafana.ini index b480f58..e4d6ed8 100644 --- a/grafana/grafana.ini +++ b/grafana/grafana.ini @@ -1,7 +1,7 @@ #################################### Server #################################### [server] protocol = http -http_port = 80 +http_port = 3000 enable_gzip = true #################################### Anonymous Auth ###################### diff --git a/grafana/install.sh b/grafana/install.sh index c071277..1d7332f 100644 --- a/grafana/install.sh +++ b/grafana/install.sh @@ -4,6 +4,8 @@ apt-get update apt-get install -y grafana cp grafana.ini /etc/grafana/grafana.ini +iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000 + systemctl daemon-reload systemctl enable grafana-server systemctl start grafana-server \ No newline at end of file