Jinja's reverse is a filter, use it accordingly

This commit is contained in:
Jonathan Ballet 2015-03-25 14:47:55 +01:00
parent 0e2dd72e43
commit 3f4a7667f7

View File

@ -35,7 +35,7 @@
{% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %} {% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %}
ProxyPreserveHost {{ vals.ProxyPreserveHost }} ProxyPreserveHost {{ vals.ProxyPreserveHost }}
{% for proxy, proxyargs in reverse(vals.ProxyRoute.items()) %} {% for proxy, proxyargs in vals.ProxyRoute.items()|reverse %}
{% set proxyvals = { {% set proxyvals = {
'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'), 'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'),
'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)), 'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)),