So I made Grafana work over HTTPS, with a domain https://example.com:3000
. I installed the Grafana Image Renderer locally, and when I set rendering_ignore_https_errors = true it works just fine. The problem is that the rendering uses the url community.grafana.com and localhost doesn’t match the certificate installed for example.com:3000
. Errors are below.
t=2020-06-04T13:47:10-0400 lvl=eror msg=“Browser request failed” logger=plugins.backend pluginId=grafana-image-renderer url=
"https://community.grafana.com/d-solo/aAKo3gmMk/base-metrics?orgId=1&refresh=30s&from=1591270848004&to=1591292448004&var-hostname=server.example.com&var-service=Apache%20HTTPD&var-disk=&var-windisk=&panelId=1&width=1000&height=500&tz=America%2FNew_York&render=1"
method=GET failure=net::ERR_CERT_COMMON_NAME_INVALID
t=2020-06-04T13:47:10-0400 lvl=eror msg=“Render request failed” logger=plugins.backend pluginId=grafana-image-renderer error="Error: net::ERR_CERT_COMMON_NAME_INVALID at
https://community.grafana.com/d-solo/aAKo3gmMk/base-metrics?orgId=1&refresh=30s&from=1591270848004&to=1591292448004&var-hostname=server.example.com&var-service=Apache%20HTTPD&var-disk=&var-windisk=&panelId=1&width=1000&height=500&tz=America%2FNew_York&render=1" url="https://community.grafana.com/d-solo/aAKo3gmMk/base-metrics?orgId=1&refresh=30s&from=1591270848004&to=1591292448004&var-hostname=server.example.com&var-service=Apache%20HTTPD&var-disk=&var-windisk=&panelId=1&width=1000&height=500&tz=America%2FNew_York&render=1"
I have tried to set in the [rendering] server_url and callback_url, in all possible combinations with https://example.com:3000
and no changes made to these variables after a service restart change the localhost to anything or get it to work.
This is with the latest Grafana 7.0.3 on Red Hat 8.
Thanks for any help provided.