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

Get HaProxy, multiple SSL domains and firewall work together

parent a4721bef
Branches
No related tags found
No related merge requests found
<VirtualHost *:80>
Include /etc/apache2/conf-available/global-redirect.conf
{% if item.protocol|default("https") == "https" %}
{% if item.protocol|default("https") == "https" and groups.proxyserver is not defined %}
ServerAdmin {{ apache_server_admin }}
ServerName {{ item.domain }}
ServerAlias {{ item.domain }}{% for alias in item.aliases|default([]) %} {{ alias }}{% endfor %}
......@@ -78,7 +78,7 @@
SetEnvIf X-Forwarded-Proto https HTTPS=on
{% if item.protocol|default("https") == "https" %}
{% if item.protocol|default("https") == "https" and groups.proxyserver is not defined %}
{% if item.letsencrypt|default(true) %}
SSLCertificateFile /etc/letsencrypt/live/{{ item.domain }}/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/{{ item.domain }}/privkey.pem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment