Fix grafana install scripts
This commit is contained in:
parent
7973cf948b
commit
4977de1d33
2 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#################################### Server ####################################
|
#################################### Server ####################################
|
||||||
[server]
|
[server]
|
||||||
protocol = http
|
protocol = http
|
||||||
http_port = 80
|
http_port = 3000
|
||||||
enable_gzip = true
|
enable_gzip = true
|
||||||
|
|
||||||
#################################### Anonymous Auth ######################
|
#################################### Anonymous Auth ######################
|
||||||
|
|
|
@ -4,6 +4,8 @@ apt-get update
|
||||||
apt-get install -y grafana
|
apt-get install -y grafana
|
||||||
|
|
||||||
cp grafana.ini /etc/grafana/grafana.ini
|
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 daemon-reload
|
||||||
systemctl enable grafana-server
|
systemctl enable grafana-server
|
||||||
systemctl start grafana-server
|
systemctl start grafana-server
|
Loading…
Reference in a new issue