Enable proxy_headers_parsing by default
This patch makes enable_proxy_headers_parsing configurable via
neutron:server:enable_proxy_headers_parsing option and enables it by
default.
Related-Prod: PROD-18315
Change-Id: I9fda606f3996fc92cd098d852af5b5c86c0578fc
diff --git a/neutron/files/ocata/neutron-server.conf b/neutron/files/ocata/neutron-server.conf
index 6700549..a7645e7 100644
--- a/neutron/files/ocata/neutron-server.conf
+++ b/neutron/files/ocata/neutron-server.conf
@@ -2084,7 +2084,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/neutron/files/pike/neutron-server.conf b/neutron/files/pike/neutron-server.conf
index 041dc2b..ddbf1c9 100644
--- a/neutron/files/pike/neutron-server.conf
+++ b/neutron/files/pike/neutron-server.conf
@@ -2112,7 +2112,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]