Fix headers parsing
This option should be by default true, to allow application
to run under proxy. And in production applications are running
under proxy.
Change-Id: I27d818df4598848832a8e2d35a501cca3dab32ca
diff --git a/glance/files/pike/glance-api.conf.Debian b/glance/files/pike/glance-api.conf.Debian
index 422ee73..bbe0dc0 100644
--- a/glance/files/pike/glance-api.conf.Debian
+++ b/glance/files/pike/glance-api.conf.Debian
@@ -4039,7 +4039,7 @@
# Whether the application is behind a proxy or not. This determines if the
# middleware should parse the headers or not. (boolean value)
-#enable_proxy_headers_parsing = false
+enable_proxy_headers_parsing = {{ server.get('enable_proxy_headers_parsing', true) }}
[oslo_policy]
diff --git a/tests/pillar/single.sls b/tests/pillar/single.sls
index a966837..4da3475 100644
--- a/tests/pillar/single.sls
+++ b/tests/pillar/single.sls
@@ -3,6 +3,7 @@
enabled: true
version: newton
workers: 1
+ enable_proxy_headers_parsing: true
database:
engine: mysql
host: localhost