26 lines
873 B
Text
26 lines
873 B
Text
<VirtualHost *:80>
|
|
ServerName {{ grafana_domain }}
|
|
Redirect permanent / https://{{ grafana_domain }}/
|
|
</VirtualHost>
|
|
|
|
<IfModule mod_ssl.c>
|
|
<VirtualHost *:443>
|
|
ServerName {{ grafana_domain }}
|
|
Protocols h2 http/1.1
|
|
DocumentRoot /var/www/html
|
|
IncludeOptional /etc/apache2/conf-available/add-headers.conf
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/grafana.error.log
|
|
#CustomLog ${APACHE_LOG_DIR}/grafana.access.log combined
|
|
LogLevel Error
|
|
|
|
SSLEngine On
|
|
SSLCertificateFile /var/lib/dehydrated/certs/{{ grafana_domain }}/fullchain.pem
|
|
SSLCertificateKeyFile /var/lib/dehydrated/certs/{{ grafana_domain }}/privkey.pem
|
|
|
|
ProxyPreserveHost On
|
|
ProxyPass /.well-known !
|
|
ProxyPass / http://127.0.0.1:3000/
|
|
ProxyPassReverse / http://127.0.0.1:3000/
|
|
</VirtualHost>
|
|
</IfModule>
|