<VirtualHost *:80>
  ServerName grafana.cloud.fedoraproject.org
  ServerAlias grafana.fedorainfracloud.org
  ErrorLog /var/log/httpd/grafana-error.log
  CustomLog /var/log/httpd/grafana-access.log common
  ProxyPass / http://localhost:3000/
  ProxyPassReverse / http://localhost:3000/

  RewriteEngine on
  RewriteRule ^/\.well-known/(.*) /srv/web/acme-challenge/.well-known/$1 [L]
</VirtualHost>

<VirtualHost {{public_ip}}:443 _default_:443>
  ServerName grafana.cloud.fedoraproject.org
  ServerAlias grafana.fedorainfracloud.org

  SSLEngine on
  SSLCertificateFile    /etc/letsencrypt/live/grafana.cloud.fedoraproject.org/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/grafana.cloud.fedoraproject.org/privkey.pem
  SSLCertificateChainFile /etc/letsencrypt/live/grafana.cloud.fedoraproject.org/fullchain.pem
  SSLHonorCipherOrder On
  SSLCipherSuite {{ ssl_ciphers }}
  SSLProtocol {{ ssl_protocols }}

  ProxyPass / http://localhost:3000/
  ProxyPassReverse / http://localhost:3000/
</VirtualHost>

