From 7db1f112ef734999e9d884df641b7cab0c953e1c Mon Sep 17 00:00:00 2001 From: Danila Balagansky Date: Mon, 6 Jun 2022 12:26:10 +0300 Subject: [PATCH] Fix ALLOWED_HOSTS Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/846473 Change-Id: Ia9fa3341dfa1386501bf74a558e418414a58fd1f --- templates/horizon_local_settings.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index f74e3990..f957b124 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -41,7 +41,7 @@ LOGOUT_URL = '{{ horizon_logout_url }}' # with the list of host/domain names that the application can serve. # For more information see: # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts -ALLOWED_HOSTS = [ "{{ horizon_allowed_hosts | join(',') }}" ] +ALLOWED_HOSTS = {{ horizon_allowed_hosts | to_json }} {% if (horizon_enable_ssl | bool) and (horizon_external_ssl | bool) %} # Set SSL proxy settings: