* improve remote image rendering - determine "domain" during Init() so we are not re-parsing settings on every request - if using http-mode via a rednererUrl, then use the AppUrl for the page that the renderer loads. When in http-mode the renderer is likely running on another server so trying to use the localhost or even the specific IP:PORT grafana is listening on wont work. - apply the request timeout via a context rather then directly on the http client. - use a global http client so we can take advantage of connection re-use - log and handle errors better. * ensure imagesDir exists * allow users to define callback_url for remote rendering - allow users to define the url that a remote rendering service should use for connecting back to the grafana instance. By default the "root_url" is used. * improve remote image rendering - determine "domain" during Init() so we are not re-parsing settings on every request - if using http-mode via a rednererUrl, then use the AppUrl for the page that the renderer loads. When in http-mode the renderer is likely running on another server so trying to use the localhost or even the specific IP:PORT grafana is listening on wont work. - apply the request timeout via a context rather then directly on the http client. - use a global http client so we can take advantage of connection re-use - log and handle errors better. * ensure imagesDir exists * allow users to define callback_url for remote rendering - allow users to define the url that a remote rendering service should use for connecting back to the grafana instance. By default the "root_url" is used. * rendering: fixed issue with renderKey where userId and orgId was in mixed up, added test for RenderCallbackUrl reading logic
Name |
Last commit
|
Last Update |
---|---|---|
.circleci | Loading commit data... | |
.github | Loading commit data... | |
conf | Loading commit data... | |
devenv | Loading commit data... | |
docker | Loading commit data... | |
docs | Loading commit data... | |
emails | Loading commit data... | |
examples | Loading commit data... | |
packaging | Loading commit data... | |
pkg | Loading commit data... | |
public | Loading commit data... | |
scripts | Loading commit data... | |
tests | Loading commit data... | |
tools/phantomjs | Loading commit data... | |
vendor | Loading commit data... | |
.bra.toml | Loading commit data... | |
.dockerignore | Loading commit data... | |
.editorconfig | Loading commit data... | |
.gitignore | Loading commit data... | |
CHANGELOG.md | Loading commit data... | |
CODE_OF_CONDUCT.md | Loading commit data... | |
Dockerfile | Loading commit data... | |
Gopkg.lock | Loading commit data... | |
Gopkg.toml | Loading commit data... | |
Gruntfile.js | Loading commit data... | |
LICENSE.md | Loading commit data... | |
Makefile | Loading commit data... | |
NOTICE.md | Loading commit data... | |
PLUGIN_DEV.md | Loading commit data... | |
README.md | Loading commit data... | |
ROADMAP.md | Loading commit data... | |
appveyor.yml | Loading commit data... | |
build.go | Loading commit data... | |
codecov.yml | Loading commit data... | |
jest.config.js | Loading commit data... | |
latest.json | Loading commit data... | |
package.json | Loading commit data... | |
tsconfig.json | Loading commit data... | |
tslint.json | Loading commit data... | |
yarn.lock | Loading commit data... |