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>
|