Skip to content

Commit

Permalink
update to add svg mimetypes and better sass processor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkrug committed Apr 21, 2017
1 parent bf494e9 commit 2ee4993
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
24 changes: 17 additions & 7 deletions ansible/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@
- name: Install PyDevel
yum: name=python-devel state=latest

- name: Install rubygems
yum: name=rubygems state=latest


- name: Install rubygems
gem: name=sass state=latest

- name: Install rubygems sass compiler
yum: name=rubygem-sass state=latest

- name: Install credstash
pip:
Expand All @@ -74,3 +69,18 @@
dest: /sso-dashboard
owner: flaskapp
mode: 0777

- name: Cache busting
file:
path: /sso-dashboard/static/css/gen/all.css
state: absent

- name: Cache busting
file:
path: /sso-dashboard/static/js/gen/packed.js
state: absent

- name: Cache busting
file:
path: /sso-dashboard/data/apps.yml-etag
state: absent
5 changes: 5 additions & 0 deletions dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import os
import hashlib
import datetime
import mimetypes


import watchtower
import logging
Expand Down Expand Up @@ -53,6 +55,9 @@
css = Bundle(sass, filters='cssmin', output='css/gen/all.css')
assets.register('css_all', css)

# Hack to support serving .svg
mimetypes.add_type('image/svg+xml', '.svg')

oidc_config = config.OIDCConfig()

authentication = auth.OpenIDConnect(
Expand Down

0 comments on commit 2ee4993

Please sign in to comment.