Grafana reverse proxy setup with Nginx1 min read

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/ {
  • 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)
    # 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

We need your support!!
Other Amount:
Questions Answered
Articles Written
Overall Points

You may also like...

Leave a Reply