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