summaryrefslogtreecommitdiffstats
path: root/roles/taskotron/taskotron-master/templates/artifacts.conf.j2
diff options
context:
space:
mode:
authorTim Flink <tflink@fedoraproject.org>2017-06-02 15:15:37 +0000
committerTim Flink <tflink@fedoraproject.org>2017-06-02 15:15:37 +0000
commit5fb1ed978b83240b97f011d9160d6df2cffa29ac (patch)
tree2b139aab6cbb1673869f4647f41db432e284f56d /roles/taskotron/taskotron-master/templates/artifacts.conf.j2
parentbf90483fe6231c773d13d8c5d3e4cc1b4a07bfe4 (diff)
downloadansible-5fb1ed978b83240b97f011d9160d6df2cffa29ac.zip
ansible-5fb1ed978b83240b97f011d9160d6df2cffa29ac.tar.gz
ansible-5fb1ed978b83240b97f011d9160d6df2cffa29ac.tar.xz
adding css filter for taskotron dev/stg
Diffstat (limited to 'roles/taskotron/taskotron-master/templates/artifacts.conf.j2')
-rw-r--r--roles/taskotron/taskotron-master/templates/artifacts.conf.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/taskotron/taskotron-master/templates/artifacts.conf.j2 b/roles/taskotron/taskotron-master/templates/artifacts.conf.j2
index 031987d..4172788 100644
--- a/roles/taskotron/taskotron-master/templates/artifacts.conf.j2
+++ b/roles/taskotron/taskotron-master/templates/artifacts.conf.j2
@@ -32,6 +32,12 @@ ExtFilterDefine gz-to-html mode=output \
intype=application/x-gzip outtype=text/html \
cmd="/bin/gunzip -c -"
+{% if deployment_type in ['dev', 'stg'] %}
+ExtFilterDefine gz-to-css mode=output \
+intype=application/x-gzip outtype=text/css \
+cmd="/bin/gunzip -c -"
+{% endif %}
+
<DirectoryMatch "^{{ public_artifacts_dir }}/all/(.+)/task_output/">
RewriteEngine on
@@ -44,6 +50,11 @@ cmd="/bin/gunzip -c -"
<FilesMatch "(?!html)">
SetOutputFilter gz-to-plain
</FilesMatch>
+{% if deployment_type in ['dev', 'stg'] %}
+ <FilesMatch "(?!css)">
+ SetOutputFilter gz-to-css
+ </FilesMatch>
+{% endif %}
<FilesMatch "(\.html\.gz|\.html)$">
SetOutputFilter gz-to-html
</FilesMatch>