http: Deprecate http/static_dir config
This commit is contained in:
parent
21b11b21cd
commit
0034545351
@ -140,6 +140,10 @@ v0.20.0 (UNRELEASED)
|
||||
|
||||
**HTTP frontend**
|
||||
|
||||
- **Deprecated:** Deprecated the :confval:`http/static_dir` config. Please make
|
||||
your web clients pip-installable Mopidy extensions to make it easier to
|
||||
install for end users.
|
||||
|
||||
- Prevent race condition in WebSocket broadcast from breaking the web server.
|
||||
(PR: :issue:`1020`)
|
||||
|
||||
|
||||
@ -73,17 +73,21 @@ See :ref:`config` for general help on configuring Mopidy.
|
||||
|
||||
.. confval:: http/static_dir
|
||||
|
||||
**Deprecated:** This config is deprecated and will be removed in a future
|
||||
version of Mopidy.
|
||||
|
||||
Which directory the HTTP server should serve at "/"
|
||||
|
||||
Change this to have Mopidy serve e.g. files for your JavaScript client.
|
||||
"/mopidy" will continue to work as usual even if you change this setting.
|
||||
"/mopidy" will continue to work as usual even if you change this setting,
|
||||
but any other Mopidy webclient installed with pip to be served at
|
||||
"/ext_name" will stop working if you set this config.
|
||||
|
||||
This config value isn't deprecated yet, but you're strongly encouraged to
|
||||
make Mopidy extensions which use the the :ref:`http-server-api` to host
|
||||
static files on Mopidy's web server instead of using
|
||||
:confval:`http/static_dir`. That way, installation of your web client will
|
||||
be a lot easier for your end users, and multiple web clients can easily
|
||||
share the same web server.
|
||||
You're strongly encouraged to make Mopidy extensions which use the the
|
||||
:ref:`http-server-api` to host static files on Mopidy's web server instead
|
||||
of using :confval:`http/static_dir`. That way, installation of your web
|
||||
client will be a lot easier for your end users, and multiple web clients
|
||||
can easily share the same web server.
|
||||
|
||||
.. confval:: http/zeroconf
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user