From 0f4bc0981a129df7990ef88879ececdf7a8a39bc Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 12 Aug 2019 11:01:12 -0700 Subject: [PATCH] graphs: fix render forwarding --- src/routes/graphs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/graphs.js b/src/routes/graphs.js index 8976d2650..7a3c51e68 100644 --- a/src/routes/graphs.js +++ b/src/routes/graphs.js @@ -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.