Added favicon support to avoid 404s

This commit is contained in:
Seth House 2015-04-23 02:12:12 -06:00
parent de976756d5
commit eceacad9c4

View File

@ -2261,6 +2261,12 @@ class API(object):
},
}
if 'favicon' in self.apiopts:
conf['/favicon.ico'] = {
'tools.staticfile.on': True,
'tools.staticfile.filename': self.apiopts['favicon'],
}
if self.apiopts.get('debug', False) is False:
conf['global']['environment'] = 'production'