Skip to content
Snippets Groups Projects
Commit f4c2596f authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/alphabet#217 Append local host to reverse proxy addresses

parent 0889fd96
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ $conf['syslog_identity'] = 'drupal_{{ item.domain }}';
{% if varnish_host|default(false) %}
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array("{{ varnish_host_ip|default('') }}");
$conf['reverse_proxy_addresses'] = array("{{ varnish_host_ip|default('') }}", "127.0.0.1");
$conf['varnish_cache_clear'] = '{{ varnish_cache_clear }}';
$conf['varnish_control_key'] = '{{ varnish_control_key }}';
{% if varnish_host == inventory_hostname %}
......
......@@ -37,7 +37,7 @@ $settings['file_public_path'] = 'sites/{{ item.shortname|default("default") }}/f
$settings['file_private_path'] = 'sites/{{ item.shortname|default("default") }}/private';
{% if varnish_host|default(false) %}
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array("{{ varnish_host_ip|default('') }}");
$conf['reverse_proxy_addresses'] = array("{{ varnish_host_ip|default('') }}", "127.0.0.1");
{% endif %}
{% for config in item.conf|default([]) %}
$settings['{{ config.key }}'] = {{ config.value }};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment