Secure Grafana with Reverse Proxy

Hi grafana community.
I have an SSL certificate. i want to secure my grafana with reverse proxy like Nginx. I have change the Grafana.ini file

domain = my_domain.net
root_url = %(protocol)s://%(domain)s:%(http_port)s/wallboard/
serve_from_sub_path = true 
And i have change the nginx.conf file like this
        map $http_upgrade $connection_upgrade {
  default upgrade;
  '' close;
}
upstream oc-wallboard {
  server www.nginx.net;
}

server {

         location /oc-wallboard/ {
        rewrite  ^/oc-wallboard/(.*)  /$1 break;
         proxy_set_header Host $http_host;
         proxy_pass  http://grafana-running-on-this-link/login/;
  }
   location /oc-wallboard/api/live/ {
    rewrite  ^/oc-wallboard/(.*)  /$1 break;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $http_host;
    proxy_pass  http://grafana-running-on-this-link/login/;
  }

}

Team Will You please check where i am missing things

Hi @saqiboctave,

This is a very commonly asked question in the community and many users already posted solutions for it.

For e.g. have a look at this post or this one OR you can also ask in one of these posts if you have some more questions.

Additionally, for my own test VM, I used this guide which works well too.

I hope this helps. :slight_smile: