Lots of small fixes in the documentation
This commit is contained in:
parent
e44b9e0418
commit
b20269966a
|
@ -133,12 +133,6 @@ which version you've installed next time you want to upgrade your installation.
|
||||||
System dependencies
|
System dependencies
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
First, switch to the api directory:
|
|
||||||
|
|
||||||
.. code-block:: shell
|
|
||||||
|
|
||||||
cd api
|
|
||||||
|
|
||||||
A few OS packages are required in order to run Funkwhale. On Debian-like
|
A few OS packages are required in order to run Funkwhale. On Debian-like
|
||||||
systems, they can be installed with
|
systems, they can be installed with
|
||||||
|
|
||||||
|
@ -221,12 +215,21 @@ Download the sample environment file:
|
||||||
|
|
||||||
cp /srv/funkwhale/deploy/env.prod.sample /srv/funkwhale/config/.env
|
cp /srv/funkwhale/deploy/env.prod.sample /srv/funkwhale/config/.env
|
||||||
|
|
||||||
|
Generate a secret key for Django:
|
||||||
|
|
||||||
You can then edit it: the file is heavily commented, and the most relevant
|
.. code-block:: shell
|
||||||
|
openssl rand -base64 45
|
||||||
|
|
||||||
|
You can then edit the file: the file is heavily commented, and the most relevant
|
||||||
configuration options are mentioned at the top of the file.
|
configuration options are mentioned at the top of the file.
|
||||||
|
|
||||||
Especially, populate the ``DATABASE_URL`` and ``CACHE_URL`` values based on
|
.. code-block:: shell
|
||||||
how you configured your PostgreSQL and Redis servers in
|
nano /srv/funkwhale/api/.env
|
||||||
|
|
||||||
|
Paste the secret key you generated earlier at the entry
|
||||||
|
``DJANGO_SECRET_KEY`` and populate the ``DATABASE_URL``
|
||||||
|
and ``CACHE_URL`` values based on how you configured
|
||||||
|
your PostgreSQL and Redis servers in
|
||||||
:doc:`external dependencies <./external_dependencies>`.
|
:doc:`external dependencies <./external_dependencies>`.
|
||||||
|
|
||||||
Database setup
|
Database setup
|
||||||
|
|
|
@ -95,4 +95,4 @@ This should be enough to have your redis server set up.
|
||||||
External Authentication (LDAP)
|
External Authentication (LDAP)
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
LDAP support requires some additional dependencies to enable. On the OS level both ``libldap2-dev`` and ``libsasl2-dev`` are required, and the Python modules ``python-ldap`` and ``django-auth-ldap`` must be installed. These dependencies are all included in the ``requirements.*`` files so deploying with those will install these dependencies by default. However, they are not required unless LDAP support is explicitly enabled. See :doc:`./ldap` for more details.
|
LDAP support requires some additional dependencies to enable. On the OS level both ``libldap2-dev`` and ``libsasl2-dev`` are required, and the Python modules ``python-ldap`` and ``python-django-auth-ldap`` must be installed. These dependencies are all included in the ``requirements.*`` files so deploying with those will install these dependencies by default. However, they are not required unless LDAP support is explicitly enabled. See :doc:`./ldap` for more details.
|
||||||
|
|
|
@ -197,6 +197,14 @@ Finally, enable the resulting configuration:
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
ln -s /etc/nginx/sites-available/funkwhale.conf /etc/nginx/sites-enabled/
|
ln -s /etc/nginx/sites-available/funkwhale.conf /etc/nginx/sites-enabled/
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
At this point you will need a certificate to enable HTTPS on your server.
|
||||||
|
There are many ways to obtain this certificate. The most popular and free
|
||||||
|
way is to obtain it from Let's Encryt. To do this, you can use an utility
|
||||||
|
called certbot. You can find a complete documentation on how to use certbot
|
||||||
|
at the `certbot documentation <https://certbot.eff.org/docs/>`.
|
||||||
|
|
||||||
Check the configuration is valid with ``nginx -t`` then reload your nginx server with ``systemctl restart nginx``.
|
Check the configuration is valid with ``nginx -t`` then reload your nginx server with ``systemctl restart nginx``.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
@ -230,6 +238,11 @@ You can tweak the configuration file according to your setup, especially the
|
||||||
TLS configuration. Otherwise, defaults, should work if you followed the
|
TLS configuration. Otherwise, defaults, should work if you followed the
|
||||||
installation guide.
|
installation guide.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To obtain a certificate to enable HTTPS on your server, please refer to the note in
|
||||||
|
the nginx chapter above.
|
||||||
|
|
||||||
Check the configuration is valid with ``apache2ctl configtest``, and once you're
|
Check the configuration is valid with ``apache2ctl configtest``, and once you're
|
||||||
done, load the new configuration with ``service apache2 restart``.
|
done, load the new configuration with ``service apache2 restart``.
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ Funkwhale supports LDAP through the Django LDAP authentication module and by set
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
||||||
LDAP support requires some additional dependencies to enable. On the OS level both ``libldap2-dev`` and ``libsasl2-dev`` are required, and the Python modules ``python-ldap`` and ``django-auth-ldap`` must be installed. These dependencies are all included in the ``requirements.*`` files so deploying with those will install these dependencies by default. However, they are not required unless LDAP support is explicitly enabled.
|
LDAP support requires some additional dependencies to enable. On the OS level both ``libldap2-dev`` and ``libsasl2-dev`` are required, and the Python modules ``python-ldap`` and ``python-django-auth-ldap`` must be installed. These dependencies are all included in the ``requirements.*`` files so deploying with those will install these dependencies by default. However, they are not required unless LDAP support is explicitly enabled.
|
||||||
|
|
||||||
Environment variables
|
Environment variables
|
||||||
---------------------
|
---------------------
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
Systemd configuration
|
Systemd configuration
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
All the command lines below should be executed as root.
|
||||||
|
|
||||||
Systemd offers a convenient way to manage your Funkwhale instance if you're
|
Systemd offers a convenient way to manage your Funkwhale instance if you're
|
||||||
not using docker.
|
not using docker.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue