Fix wrong redirects for stack deletion

By default Heat API redirects DELETE requests to plain HTTP URI
(no matter whether original request was HTTP or HTTPS). Oslo.middleware
headers processing fixes the issue and API becomes consistent
in redirection processing.

Change-Id: Ifc5eb7f81a828329d1a34195a4ee7e1ccd7277e6
This commit is contained in:
Ilya Shakhat 2017-02-13 12:12:33 +04:00
parent 8a24d2badd
commit 4d4c1209ea
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ backend = oslo_cache.memcache_pool
enabled = True enabled = True
memcache_servers = {{ address('memcached', memcached.port) }} memcache_servers = {{ address('memcached', memcached.port) }}
[oslo_middleware]
enable_proxy_headers_parsing = true
{# messaging macros template #} {# messaging macros template #}
{{ oslo_messaging[messaging.backend.rpc]('rpc_config') }} {{ oslo_messaging[messaging.backend.rpc]('rpc_config') }}
{{ oslo_messaging[messaging.backend.notifications]('notifications_config') }} {{ oslo_messaging[messaging.backend.notifications]('notifications_config') }}