Skip to content
Snippets Groups Projects
Commit dd583bf4 authored by jurgenhaas's avatar jurgenhaas
Browse files

Centralize SSL settings in apache role

parent aa0342f0
No related branches found
No related tags found
No related merge requests found
......@@ -113,9 +113,8 @@
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
{% if drupal_domain.protocol|default("https") == "https" and groups.proxyserver is not defined %}
SSLEngine on
Include /etc/apache2/{{ apache_conf_dir }}/options-ssl-apache.conf
{% if drupal_domain.letsencrypt|default(true) %}
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/chain.pem
......@@ -154,9 +153,8 @@
RewriteRule ^ https://{{ drupal_domain.domain }}%{REQUEST_URI} [END,QSA,R=permanent]
{% if drupal_domain.protocol|default("https") == "https" and groups.proxyserver is not defined %}
SSLEngine on
Include /etc/apache2/{{ apache_conf_dir }}/options-ssl-apache.conf
{% if drupal_domain.letsencrypt|default(true) %}
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/chain.pem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment