Implemented variable mapping to reduce complexity

This commit is contained in:
2024-01-02 12:23:25 +01:00
parent 5d91bc039f
commit 4e09fbd3fb
41 changed files with 86 additions and 78 deletions

View File

@@ -31,7 +31,7 @@ for filename in os.listdir(config_path):
# Determine expected status codes based on the domain
if domain == '{{domain_listmonk}}':
expected_statuses = [401]
{% if nginx_matomo_tracking | bool %}
{% if nginx_matomo_tracking %}
elif parts[0] == 'www' or domain in redirected_domains:
expected_statuses = [301]
{% endif %}