Fix grafana install scripts

This commit is contained in:
Denis-Cosmin Nutiu 2022-06-13 14:39:35 +03:00
parent 7973cf948b
commit 4977de1d33
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,7 @@
#################################### Server ####################################
[server]
protocol = http
http_port = 80
http_port = 3000
enable_gzip = true
#################################### Anonymous Auth ######################

View file

@ -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