diff --git a/templates/config/prod/framework.yaml b/templates/config/prod/framework.yaml index 937b448..309ff17 100644 --- a/templates/config/prod/framework.yaml +++ b/templates/config/prod/framework.yaml @@ -1,11 +1,11 @@ # this file is managed by ansible. Do not edit it by hand framework: - {% if traefik_install +%} +{% if traefik_install %} trusted_proxies: '127.0.0.1,REMOTE_ADDR{% for ip in traefik_trusted_ips|default([]) %},{{ ip }}{% endfor %}' - {%+ else %} +{% else %} trusted_proxies: '127.0.0.1,{% for ip in chill.proxy_ips %}{{ ip }}{% if not loop.last %},{% endif %}{% endfor %}' - {%+ endif %} +{% endif %} trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port'] parameters: diff --git a/templates/config/prod/messenger.yaml b/templates/config/prod/messenger.yaml index 8859c0a..734f5f6 100644 --- a/templates/config/prod/messenger.yaml +++ b/templates/config/prod/messenger.yaml @@ -2,7 +2,7 @@ framework: messenger: transports: - {% if chill.rabbitmq_install +%} +{% if chill.rabbitmq_install %} async: dsn: '%env(RABBITMQ_URL)%/async' options: @@ -13,9 +13,9 @@ framework: async: ~ auto_setup: true priority: '%env(RABBITMQ_URL)%/priority' - {% else +%} +{% else %} async: 'doctrine://default' priority: 'doctrine://default' - {% endif +%} +{% endif %} failed: 'doctrine://default?queue_name=failed' sync: 'sync://'