graphs: fix render forwarding

This commit is contained in:
Girish Ramakrishnan
2019-08-12 11:01:12 -07:00
parent 07f6351465
commit 0f4bc0981a

View File

@@ -14,7 +14,9 @@ function getGraphs(req, res, next) {
delete parsedUrl.query['access_token'];
delete req.headers['authorization'];
delete req.headers['cookies'];
req.url = url.format({ pathname: 'render', query: parsedUrl.query });
// 'graphite-web' is the URL_PREFIX in docker-graphite
req.url = url.format({ pathname: 'graphite-web/render', query: parsedUrl.query });
// graphs may take very long to respond so we run into headers already sent issues quite often
// nginx still has a request timeout which can deal with this then.