1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00
supysonic/docs/setup/deploying/index.rst

47 lines
1.7 KiB
ReStructuredText
Raw Permalink Normal View History

2021-01-10 17:01:21 +00:00
Running the web server
======================
Once Supysonic is installed and configured, you'll have to start its web server
for the clients to be able to access the music. Here you have several options,
whether you want to run it as independant process(es), then possibly putting it
behind a reverse proxy, or running it as a WSGI application within Apache.
supysonic-server
^^^^^^^^^^^^^^^^
But the easiest might be to use Supysonic's own server. It actually requires a
WSGI server library to run, so you'll first need to have either `Gevent`__,
`Gunicorn`__ or `Waitress`__ to be installed. Then you can start the server with
the following command::
supysonic-server
And it will start to listen on all IPv4 interfaces on port 5722.
This command allows some options, more details are given on its manpage:
:doc:`/man/supysonic-server`. It is intentionally kept simple, as such it
doesn't provide much in terms of tuning. If you want more control over the
server's behavior you might as well try one of the options presentend below.
__ https://www.gevent.org
__ https://gunicorn.org/
__ https://docs.pylonsproject.org/projects/waitress/en/stable/index.html
Other options
^^^^^^^^^^^^^
You'll find some other common (and less common) deployment options below:
2021-01-10 17:01:21 +00:00
.. toctree::
:maxdepth: 2
wsgi-standalone
apache
2021-01-16 15:09:53 +00:00
other
As Supysonic is a WSGI application, you have numerous deployment options
available to you. If you want to deploy it to a WSGI server not listed here,
look up the server documentation about how to use a WSGI app with it. When
2021-01-17 16:06:44 +00:00
setting one of those, you'll want to call the :py:func:`create_application`
factory function from module :py:mod:`supysonic.web`.