# Configuration for {{ grafana.url }}
# vim:ft=apache:
# Accept connections from non-SNI clients
SSLStrictSNIVHostCheck off
# Need this for SSL proxying, apparently
SSLProxyEngine on
# Website configuration
ServerName {{ grafana.url }}
Redirect permanent / https://{{ grafana.url }}
SSLEngine on
SSLCertificateFile /etc/pki/cert/crt/{{ grafana.url }}.crt
SSLCertificateKeyFile /etc/pki/cert/private/{{ grafana.url }}.key
SSLCertificateChainFile /etc/pki/cert/crt/{{ grafana.url }}-fullchain.crt
SSLProtocol {{ ssl_protocol }}
SSLCipherSuite {{ ssl_cipher_suite }}
ServerName {{ grafana.url }}
DocumentRoot {{ grafana.webroot }}
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:3001/ nocanon retry=1
ProxyPassReverse / https://127.0.0.1:3001/
RequestHeader set X_FORWARDED_PROTO 'https'
RequestHeader set X-Forwarded-Ssl on