simplify template conditional

development
Michael Collins 3 years ago
parent bfb61e776e
commit 8238d65e5f

@ -2,7 +2,7 @@
{% macro render_vhost_directives() %} {% macro render_vhost_directives() %}
{% if matrix_awx_enabled and not matrix_nginx_proxy_base_domain_homepage_enabled %} {% if matrix_awx_enabled and not matrix_nginx_proxy_base_domain_homepage_enabled %}
root {{ matrix_nginx_proxy_data_path_in_container if matrix_nginx_proxy_enabled else matrix_nginx_proxy_data_path }}; root {{ matrix_nginx_proxy_data_path_in_container }};
{% else %} {% else %}
root {{ matrix_nginx_proxy_data_path_in_container if matrix_nginx_proxy_enabled else matrix_nginx_proxy_data_path }}/matrix-domain; root {{ matrix_nginx_proxy_data_path_in_container if matrix_nginx_proxy_enabled else matrix_nginx_proxy_data_path }}/matrix-domain;
{% endif %} {% endif %}

Loading…
Cancel
Save