http: Add favicon
This commit is contained in:
parent
0423d5289b
commit
90859c903b
@ -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',
|
||||
|
||||
BIN
mopidy/frontends/http/data/favicon.png
Normal file
BIN
mopidy/frontends/http/data/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
Loading…
Reference in New Issue
Block a user