2020-05-10 03:30:19 -05:00
|
|
|
# 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
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName {{ grafana_url }}
|
|
|
|
Redirect permanent / https://{{ grafana_url }}
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
|
|
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
|
2020-06-04 19:35:59 -05:00
|
|
|
SSLProtocol {{ ssl_protocol }}
|
|
|
|
SSLCipherSuite {{ ssl_cipher_suite }}
|
2020-05-10 03:30:19 -05:00
|
|
|
ServerName {{ grafana_url }}
|
|
|
|
DocumentRoot {{ grafana_webroot }}
|
|
|
|
<Directory "{{ grafana_webroot }}">
|
|
|
|
Require all granted
|
|
|
|
AllowOverride All
|
|
|
|
Options MultiViews FollowSymlinks
|
|
|
|
</Directory>
|
|
|
|
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
|
|
|
|
</VirtualHost>
|