http: Add favicon

This commit is contained in:
Stein Magnus Jodal 2012-11-30 21:57:12 +01:00
parent 0423d5289b
commit 90859c903b
2 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
logger.debug('HTTP server will serve "%s" at /', static_dir)
mopidy_dir = os.path.join(os.path.dirname(__file__), 'data')
favicon = os.path.join(mopidy_dir, 'favicon.png')
config = {
b'/': {
@ -62,6 +63,10 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
'tools.staticdir.index': 'index.html',
'tools.staticdir.dir': static_dir,
},
b'/favicon.ico': {
'tools.staticfile.on': True,
'tools.staticfile.filename': favicon,
},
b'/mopidy': {
'tools.staticdir.on': True,
'tools.staticdir.index': 'mopidy.html',

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB