openstack-ansible-os_horizon/tasks
Damian Dabrowski c92f45e3af Fix horizon_enable_ssl logic
Current logic does not allow horizon backend to listen on https
(`horizon_enable_ssl`) if external loadblanacer serves TLS
(`horizon_external_ssl`).
It basically forces backend to listen on plain http in this case which
does not make any sense. It should be possible to enable TLS on both
loadbalancer and horizon backend.

Additionally, with this patch, role defines a proper
HTTP_X_FORWARDED_PROTO header value(it's included in
`horizon_secure_proxy_ssl_header` and
`horizon_secure_proxy_ssl_header_django` and can be set to 'http' or
'https') based on whether external load balancer listens on https
(`horizon_external_ssl`)[1].
For example if loadbalancer listens on https and backend on http,
HTTP_X_FORWARDED_PROTO should be set to 'https'. Otherwise horizon will
respond with redirection to http.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto

Change-Id: I7706e52c01b3f0d72ea383a0476045e606078cff
2023-04-11 19:35:00 +02:00
..
horizon_apache.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_install_source.yml Release pyscss constraints 2022-07-05 07:17:48 +00:00
horizon_install.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_post_install_source.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_post_install.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_pre_install.yml Improve defining horizon_lib_dir 2022-02-04 11:40:17 +00:00
horizon_service_setup.yml Enable overriding the service setup host python interpreter 2018-11-30 16:10:56 +00:00
horizon_ssl_key_create.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_ssl_key_distribute.yml Cleanup/standardize usage of tags 2016-07-11 16:48:58 -04:00
horizon_ssl_key_store.yml Cleanup/standardize usage of tags 2016-07-11 16:48:58 -04:00
horizon_ssl_self_signed.yml use include_tasks instead of include 2018-08-15 17:28:30 +08:00
horizon_ssl_user_provided.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_translations_update.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
horizon_uwsgi.yml Add uwsgi option to horizon 2022-09-21 01:18:34 +00:00
main.yml Fix horizon_enable_ssl logic 2023-04-11 19:35:00 +02:00