Grafana reverse proxy

Iam running a meteor application. Iam embedding grafana dashboard in a iframe and displaying it in my application.

My application is in https and grafana is in http (I cant run grafana on https as I do not have certs), so I cant fetch http grafana url in my https page.

So as a work around, what Iam doing is I make a https request to my application backend and my application backend fetches the http grafana URL i.e. Iam using my backend as reverse proxy. But this is not working. I get the following error " If you’re seeing this Grafana has failed to load its application files 1. This could be caused by your reverse proxy settings.".

I have correctly set root_url and domain in /etc/grafana/grafana.ini (also in /usr/share/grafana/conf/defaults.ini). Is there any other setting which I need to do? What could I be doing wrong?

Thanks

1 Like