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>