Nginx config not working for reverse proxy


I am using for nginx config with subpath.

nginx config:

server {
  listen 80;
  root /usr/share/nginx/html;
  index index.html index.htm;
  include /etc/nginx/mime.types;

  location /grafana/ {
   proxy_pass http://1X7.00.00.001:3000/;
   proxy_set_header Host $host;
   proxy_set_header X-Forwarded-For $remote_addr;

domain =
root_url = %(protocol)s://%(domain)s/grafana/

When I am hitting on browser, getting default  warning message from grafana as below,

**If you're seeing this Grafana has failed to load its application files **

**1. This could be caused by your reverse proxy settings.** 

and so on.

Is anything missing? Please suggest.