Faild to use reverse proxy nginx with grafana

Hello eveyone!

I am having some problems when using reverse proxy. It always response Unable to connect when I access from browser.

This is my config in nginx and I don’t see anything is wrong.

server {
listen 80;
location /grafana {
root /var/www/html;

refer this

you need to set root_url.