Merge "Trivial fix horizon's healthcheck when SSL turned on"

This commit is contained in:
Zuul 2021-08-03 11:07:43 +00:00 committed by Gerrit Code Review
commit 80758f44d4
3 changed files with 7 additions and 7 deletions

View File

@ -341,7 +341,7 @@ heat_api_cfn_listen_port: "{{ heat_api_cfn_port }}"
horizon_port: "80" horizon_port: "80"
horizon_tls_port: "443" horizon_tls_port: "443"
horizon_listen_port: "{{ horizon_port }}" horizon_listen_port: "{{ horizon_tls_port if horizon_enable_tls_backend | bool else horizon_port }}"
influxdb_http_port: "8086" influxdb_http_port: "8086"

View File

@ -13,7 +13,7 @@ ServerSignature Off
ServerTokens Prod ServerTokens Prod
TraceEnable off TraceEnable off
<VirtualHost *:{{ horizon_listen_port }}> <VirtualHost {{ api_interface_address }}:{{ horizon_listen_port }}>
LogLevel warn LogLevel warn
ErrorLog /var/log/kolla/horizon/horizon.log ErrorLog /var/log/kolla/horizon/horizon.log
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
@ -50,11 +50,6 @@ TraceEnable off
{% endif %} {% endif %}
</VirtualHost> </VirtualHost>
{# FIXME(yoctozepto): enabling of either tls will break the other if not enabled too #}
{% if kolla_enable_tls_external | bool or kolla_enable_tls_internal | bool %}
Header edit Location ^http://(.*)$ https://$1
{% endif %}
<IfModule mod_deflate.c> <IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Json, Text, XML and fonts # Compress HTML, CSS, JavaScript, Json, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/javascript

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes horizon's healthcheck when SSL is turned on.
`LP#1933846 <https://launchpad.net/bugs/1933846>`__