Skip to content

Commit

Permalink
Merge "Enable deflate when using tls for horizon"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed May 7, 2019
2 parents eef2bdb + 06a8161 commit 0d5ccfe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ansible/roles/horizon/templates/horizon.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ TraceEnable off

{% if kolla_enable_tls_external | bool %}
Header edit Location ^http://(.*)$ https://$1
{% else %}
# NOTE(Jeffrey4l): Only enable deflate when tls is disabled until the
# OSSN-0037 is fixed.
# see https://wiki.openstack.org/wiki/OSSN/OSSN-0037 for more information.
{% endif %}

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
# Compress HTML, CSS, JavaScript, Json, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
Expand All @@ -62,7 +61,6 @@ Header edit Location ^http://(.*)$ https://$1
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
</IfModule>
{% endif %}

<IfModule mod_expires.c>
<Filesmatch "\.(jpg|jpeg|png|gif|js|css|swf|ico|woff)$">
Expand Down

0 comments on commit 0d5ccfe

Please sign in to comment.