From f4c2596fe0b3046cd07b6ca78865984193ce1406 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 16 Mar 2017 14:23:59 +0100
Subject: [PATCH] ansible-inventories/alphabet#217 Append local host to reverse
 proxy addresses

---
 templates/d7_settings.php | 2 +-
 templates/d8_settings.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/d7_settings.php b/templates/d7_settings.php
index 5d30054..804f617 100644
--- a/templates/d7_settings.php
+++ b/templates/d7_settings.php
@@ -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 %}
diff --git a/templates/d8_settings.php b/templates/d8_settings.php
index 8612965..0d98b54 100644
--- a/templates/d8_settings.php
+++ b/templates/d8_settings.php
@@ -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 }};
-- 
GitLab