Grafana on an existing https webserver with letsencrypt and reverse proxy

Dear all, I hope this is the right place, sorry if not - it’s my first post!

I successfully installed grafana on a debian server that already serves a website with apache2 and a certificate for https by letsencrypt. So I can call so far
http://myservers_IP:3000
and I see the grafana dashboard/frontend. Also created an admin password.

Now, want to be able to access grafana on that server at https://myserversDNS/grafana

So i heard that I can set up a reverse proxy.

Questions:

  • Is that possible using the existing server certificate, or do I have to create a new?
  • is there a minimal example/tutorial for this available how to do it?

Thanks in advance!

forget https with grafana, no guide ever works.
i’m 6 hours in, and still not loading the page.

At least I’m not alone! :slight_smile:

Somebody here made it with a certificate of letsencrypt?

or somebody made it with grafana and https at all?

Finally I made it: setting up a reverse proxy putting into /etc/apache2/sites-available/000-default-le.ssl.conf:

    ProxyPass "/grafana" "http://grafana.staged-by-discourse.com"
    ProxyPassReverse "/grafana" "http://grafana.staged-by-discourse.com"

and adjusting grafana.ini

It took me some hours to find out that the trailing “/” in lots of the examples after the 3000 needs to be deleted. With the trailing slash, I had ERR_TOO_MANY_REDIRECTS. Maybe it helps somebody.