Commit Graph

78 Commits

Author SHA1 Message Date
Stein Magnus Jodal
4c6c7ce016 http: Update Mopidy.js to v0.4.1 2014-09-11 21:50:11 +02:00
Stein Magnus Jodal
83e779eaaf http: Guard against double close of WebSocket 2014-08-30 00:25:43 +02:00
dz0ny
711caa9417 avahi: Service hostname must contain, resolvable fqdn with .local appended to it. 2014-07-26 14:54:21 +02:00
Stein Magnus Jodal
6ed8132f76 http: Allow WebSocket requests from other hosts
This makes Tornado 4.0 behavior consistent with previous Tornado versions.

Fixes #788
2014-07-25 10:52:39 +02:00
Stein Magnus Jodal
ae49c4d113 http: Add missing string interpolation placeholder 2014-07-23 17:35:55 +02:00
Stein Magnus Jodal
f55f3d75c1 http: Fix path to socket object 2014-07-22 14:01:22 +02:00
Stein Magnus Jodal
0c10199632 http: Only require Tornado >= 2.3 2014-07-22 13:43:42 +02:00
Stein Magnus Jodal
1ebe1151fc http: Make event emitting testable 2014-07-17 01:14:06 +02:00
Stein Magnus Jodal
3fac0cb8de http: Split socket and server creation 2014-07-17 01:13:48 +02:00
Stein Magnus Jodal
215dd777f6 http: Move Mopidy request handlers to helper method 2014-07-17 00:58:10 +02:00
Stein Magnus Jodal
2cf37679a6 Merge branch 'develop' into feature/http-startup
Conflicts:
	mopidy/http/actor.py
2014-07-17 00:27:50 +02:00
Stein Magnus Jodal
ece59f5deb http: Simplify Zeroconf publishing 2014-07-17 00:21:59 +02:00
Stein Magnus Jodal
e9243357ae http: Format "server running" log msg like MPD
By removing the http://... URL in the log output, we hopefully remove the
dubious connection between hostname/port configuration and the URL you'll
actually use to browse the Mopidy web server.

Example log output with this change:

    ...
    INFO     Starting Mopidy frontends: HttpFrontend, MpdFrontend
    INFO     HTTP server running at [::ffff:127.0.0.1]:6680
    INFO     MPD server running at [::ffff:127.0.0.1]:6600
2014-07-16 22:36:03 +02:00
Stein Magnus Jodal
f9755b562c http: Raise FrontendError if socket creation fails
This removes the stacktraces when two Mopidy instances are started with the
same hostname/port configuration.
2014-07-16 22:36:03 +02:00
Stein Magnus Jodal
2177550649 http: Prettify HTTP router list in debug log 2014-07-15 01:42:37 +02:00
Stein Magnus Jodal
6e226326fd http: Explicitly define template path for this router
Fixes #774
2014-07-12 00:05:55 +02:00
Stein Magnus Jodal
8041f921ad http: Style tweaks 2014-07-01 23:22:52 +02:00
Stein Magnus Jodal
b3bd10017a Merge branch 'ZenithDK/fix/check_static_dir' into develop 2014-07-01 23:20:41 +02:00
Lasse Bigum
cca029eb67 Check configured static_dir and fall back to default if non-existing
Signed-off-by: Lasse Bigum <lasse@bigum.org>
2014-06-28 00:51:51 +02:00
Lasse Bigum
20de648f18 Tornado redefines '::' to IPv6 only, so set '::' to None to get expected behaviour
Signed-off-by: Lasse Bigum <lasse@bigum.org>
2014-06-28 00:44:18 +02:00
Stein Magnus Jodal
dba6e9b817 http: Fix missing placeholder in log statement
Related to martijnboland/moped#5
2014-06-24 12:46:41 +02:00
Stein Magnus Jodal
24f9a2ac3b js: Release v0.4.0 2014-06-24 00:44:47 +02:00
Stein Magnus Jodal
aed8670797 http: Fix flake8 warnings 2014-06-22 09:53:03 +02:00
Stein Magnus Jodal
9f925570d2 http: Redirect from root to /mopidy/ if no static_dir app 2014-06-22 01:24:57 +02:00
Stein Magnus Jodal
5861071bb1 http: List installed web clients at /mopidy/ 2014-06-22 00:39:54 +02:00
Stein Magnus Jodal
3fb225233a http: Extract helper for setting common response headers 2014-06-22 00:29:01 +02:00
Stein Magnus Jodal
0e2b396be4 web: Strip down CSS 2014-06-21 23:34:45 +02:00
Stein Magnus Jodal
97efcdc019 web: Remove focus on 'HTTP frontend' 2014-06-21 23:30:13 +02:00
Stein Magnus Jodal
005cb028e7 web: Use font similar to mopidy.com 2014-06-21 23:30:00 +02:00
Stein Magnus Jodal
603da5673e web: Make pages fill mobile viewports 2014-06-21 23:27:42 +02:00
Stein Magnus Jodal
59760bb36c web: Remove WebSocket demo page 2014-06-21 23:27:35 +02:00
Stein Magnus Jodal
fbcc73004d http: Redirect from /app to /app/ 2014-06-21 16:36:16 +02:00
Stein Magnus Jodal
49644dfd99 http: Use same string interpolation style as elsewhere 2014-06-21 15:13:44 +02:00
dz0ny
7c428ce8d2 Fix http router so it can handle /{ext_name} same as /{ext_name}/ 2014-06-21 15:05:13 +02:00
Stein Magnus Jodal
d9d8d06ff4 js: Release Mopidy.js v0.3.0 2014-06-16 23:11:39 +02:00
Stein Magnus Jodal
720a403439 http: Remove unused Router class 2014-06-04 21:32:54 +02:00
Stein Magnus Jodal
33228f2528 http: Simplify app registration 2014-06-04 21:32:19 +02:00
Stein Magnus Jodal
d13194dfa4 http: Remove static file serving from the Router 2014-06-04 20:55:28 +02:00
Stein Magnus Jodal
eea6138b3d http: Simplify static files serving 2014-06-04 20:47:49 +02:00
Stein Magnus Jodal
8e4fa48768 http: Fix reference to old config name 2014-06-03 00:42:35 +02:00
Stein Magnus Jodal
5526a500ab http: Rename variable 2014-05-22 21:03:42 +02:00
Stein Magnus Jodal
684a64405d http: Move MopidyHttpRouter into handlers module 2014-05-22 21:03:42 +02:00
Stein Magnus Jodal
252eb4d735 http: Adjust log level 2014-05-22 20:47:49 +02:00
Stein Magnus Jodal
345bf5b418 http: Fix docs links 2014-05-21 00:43:56 +02:00
Stein Magnus Jodal
fe9a126a2a http: Enforce router's URL namespace 2014-05-20 23:53:26 +02:00
Stein Magnus Jodal
4b383c1762 http: Move Mopidy request handlers to a MopidyHttpRouter 2014-05-20 23:49:22 +02:00
Stein Magnus Jodal
5d1f8f2203 http: Give routers access to the core API 2014-05-20 23:30:49 +02:00
Stein Magnus Jodal
b1d9e112fe http: Change registry key to match docs 2014-05-20 23:09:59 +02:00
Stein Magnus Jodal
6d04aaf3e4 http: More consistent use of 'request handler' 2014-05-20 22:50:45 +02:00
Stein Magnus Jodal
b44c9a6f9c http: Simplify extension loading
...and fix breakage I just made myself.
2014-05-20 22:42:32 +02:00