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

Redirect crm.list domains to SSL

parent dd583aaf
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ frontend http_in
{% endfor %}
{% if hostvars[host].proxy_crm_domains is defined %}
acl crm_domain_in_{{host}} hdr_dom(host) -i -n -f /etc/haproxy/{{host}}.crm.list
use_backend backend_{{host}} if crm_domain_in_{{host}}
use_backend backend_redirect_ssl if crm_domain_in_{{host}}
{% endif %}
{% endfor %}
{% endif %}
......@@ -309,6 +309,8 @@ frontend https_in_{{ cert.ip }}
use_backend backend_{{host}}_https if proxy_special_rules_{{host}}_{{rule}}
{% endfor %}
{% if hostvars[host].proxy_crm_domains is defined %}
acl crm_domain_in_{{host}} hdr_dom(host) -i -n -f /etc/haproxy/{{host}}.crm.list
use_backend backend_{{host}}_https if crm_domain_in_{{host}}
{% endif %}
{% endfor %}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment