Skip to content
Snippets Groups Projects
Verified Commit 46d52939 authored by wxcafé's avatar wxcafé
Browse files

adds funkwhale user authorization for postgres

parent 19c5c8ab
No related branches found
Tags 0.9
No related merge requests found
......@@ -45,15 +45,25 @@ Create the project database and user:
CREATE USER funkwhale;
GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale;
Assuming you already have :ref:`created your funkwhale user <create-funkwhale-user>`,
you should now be able to open a postgresql shell:
.. warning::
It's importing that you use utf-8 encoding for your database,
It's important that you use utf-8 encoding for your database,
otherwise you'll end up with errors and crashes later on when dealing
with music metedata that contains non-ascii chars.
On Debian you will also need to allow the funkwhale unix user to access the database:
.. code-block:: shell
cat | sudo tee -a /etc/postgresql/9.5/main/pg_hba.conf << EOF
local all funkwhale peer
EOF
sudo systemctl restart postgresql
Assuming you already have :ref:`created your funkwhale user <create-funkwhale-user>`,
you should now be able to open a postgresql shell:
.. code-block:: shell
sudo -u funkwhale -H psql
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment