Grafana behind reverse proxy (nginx) with subpath

Configure Grafana for subpath and then also connect to subpath from nginx

 proxy_pass http://grafana:3000/grafana/;

All gears must be working with that subpath