Commit 73c65ed7 authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Fix publish condition

No custom_http nor custom_https shall publish information normally calculated.
parent 66a24322
......@@ -27,7 +27,7 @@ md5sum = a30d4bc21ae94d0eca42cea5032468a8
[template-slave-list]
filename = templates/apache-custom-slave-list.cfg.in
md5sum = ecca3955ba747444f505216839fd1645
md5sum = acfe2c5530ddd46803f99e7f5249aa5e
[template-slave-configuration]
filename = templates/custom-virtualhost.conf.in
......@@ -43,7 +43,7 @@ md5sum = 2c3685356bef4b52fa2e654712e463cd
[template-custom-slave-list]
filename = templates/apache-custom-slave-list.cfg.in
md5sum = ecca3955ba747444f505216839fd1645
md5sum = acfe2c5530ddd46803f99e7f5249aa5e
[template-not-found-html]
filename = templates/notfound.html
......
......@@ -99,7 +99,7 @@ crl = {{ custom_ssl_directory }}/crl/
{% do cached_server_dict.__setitem__(slave_reference, slave_configuration_section_name) -%}
{% endif -%}
{% if not slave_instance.has_key('apache_custom_http') %}
{% if not slave_instance.has_key('apache_custom_http') and not slave_instance.has_key('apache_custom_https') %}
{% do slave_publish_dict.__setitem__('domain', slave_instance.get('custom_domain')) -%}
{% do slave_publish_dict.__setitem__('url', "http://%s" % slave_instance.get('custom_domain')) -%}
{% do slave_publish_dict.__setitem__('site_url', "http://%s" % slave_instance.get('custom_domain')) -%}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment