mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Added favicon support to avoid 404s
This commit is contained in:
parent
de976756d5
commit
eceacad9c4
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user