Grafana behind a proxy with ssl

Hello I am new to grafana and maybe there is a simple solution for that but I was not able to find that on the Internet. But I really want SSL to work. So thanks in advance.

  • What Grafana version and what operating system are you using?
    Newest current version and Ubuntu 22.04LTS

  • What are you trying to achieve?
    I want to get Grafana reachable from the internet with ssl

  • How are you trying to achieve it?
    I am using an apache2 Webserver and its reverse proxy function. And signed it via certbot.

  • What happened?
    Http works just fine but https does not work and grafana throws Origin not allowed at me

  • What did you expect to happen?
    I expected HTTPS to work like HTTP

  • Can you copy/paste the configuration(s) that you are having problems with?
    This is my censored apache conf

<VirtualHost *:80>
    ServerName ****.*********.de
    ProxyPreserveHost On
    SSLProxyEngine On
    ProxyPass / http://grafana.staged-by-discourse.com/ nocanon
    ProxyPassReverse / http://grafana.staged-by-discourse.com/
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =****.*********.de
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=perm>
</VirtualHost>

@fritzchentastig Hello! Did you get this working? I am very interested in doing the same on a Raspberry Pi. If you can provide any details that would be great! Thank you.