Hi Techrunnr, this document deals with Grafana reverse proxy setup

  •  Prerequisites
  • Check the Nginx status
    systemctl status nginx
  • Now we are going to edit the configuration file (/etc/nginx/nginx) to the reverse proxy, Remember that Grafana runs on port number: 3000, set up reverse proxy add below lines to the file
    server {
                    location /techrunnr/ {
                            proxy_pass http://127.0.0.1:3000/;
            }
            }
  • Now start the , and open to http://localhost:3000
    systemctl start grafana-server

  • It should be straight forward to and running behind , but you need make some changes in the serverdomain block in configuration file (/etc//grafana.ini)
    [server]
    # Protocol (http or https)
    protocol = http
    
    # The ip address to bind to, empty will bind to all interfaces
    ;http_addr =
    
    # The http port  to use
    http_port = 3000
    
    # The public facing domain name used to access grafana from a browser
    domain = localhost
    
    # Redirect to correct domain if host header does not match domain
    # Prevents DNS rebinding attacks
    ;enforce_domain = false
    
    # The full public facing url
    root_url = %(protocol)s://%(domain)s/techrunnr
  • Restart the
    systemctl start grafana-server

     

  • Now start the Service (If already service is restart the service)
    systemctl start nginx

© 2019, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.