Full dashboard render with phantomjs not working with root_url configured for reverse proxy after Grafana6 update


#1

Previously with Grafana 4.5.2, full dashboard rendering thru our reverse proxy was OK
After Grafana 6.0.1 migration, full dashbaord rendering generate a screenshot with 404 picture

Grafana 6.0.1:
With : root_url = %(protocol)s://%(domain)s/grafana
curl -o /tmp/snapshot.jpg http://127.0.0.1:3000/render/d/{ID}/{Dashboard_name} generate a screenshot with a 404 picture

If we remove grafana in root_url: root_url = %(protocol)s://%(domain)s
curl -o /tmp/snapshot.jpg http://127.0.0.1:3000/render/d/{ID}/{Dashboard_name} generate the good screenshot of the dashboard
But in this case access thru reverse proxy does not work anymore

Any idea ?
Thanks