Grafana Installation

here is a simple installation script for Grafana with Nginx reverse proxy

run this script as root

one line installation

wget https://raw.githubusercontent.com/hermanwjacobsen/scripts/master/grafanainstall.sh -O grafanainstall.sh && sh grafanainstall.sh

there is only one prompt asking for FQDN, you can leave it blank if you don’t have a domain, and open the site via IP address instead of fqdn.

after the installaion open the grafana webpage, default username/password is admin/admin.

here is an nginx config for HTTPS

server {

    listen 80;
    return 301 https://$host$request_uri;

}

server {
        listen 443 ssl;

        ssl_certificate /etc/nginx/cert/fullchain.pem;
        ssl_certificate_key /etc/nginx/cert/privkey.pem;

        root /usr/share/nginx/html/;
        index index.html index.htm;

        location / {
                proxy_pass http://localhost:3000;
        }
}

Leave a Reply

Your email address will not be published. Required fields are marked *