From 61d0005be8bc23d23562c6bda32361742a3e6e17 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 24 Jun 2024 09:14:58 +0200 Subject: [PATCH] DOC: add jwt key generation in the sf5 installationdoc --- docs/source/installation/index.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/source/installation/index.rst b/docs/source/installation/index.rst index 0328322e4..208117e3e 100644 --- a/docs/source/installation/index.rst +++ b/docs/source/installation/index.rst @@ -95,7 +95,7 @@ custom developments. But most of the time, this should be fine. You have to configure some local variables, which are described in the :code:`.env` file. The secrets should not be stored in this :code:`.env` file, but instead using the `secrets management tool `_ -or in the :code:`.env.local` file, which should not be commited to the git repository. +or in the :code:`.env.local` file, which should not be committed to the git repository. You do not need to set variables for the smtp server, redis server and relatorio server, as they are generated automatically by the symfony server, from the docker compose services. @@ -114,6 +114,12 @@ you can either: - add the generated password to the secrets manager (**note**: you must add the generated hashed password to the secrets env, not the password in clear text). +- set up the jwt authentication bundle + +Some environment variables are available for the JWT authentication bundle in the `.env` file. You must also run the command +`symfony console lexik:jwt:generate-keypair` to generate some keys that will be stored in the paths set up in the `JWT_SECRET_KEY` +and the `JWT_PUBLIC_KEY` env variables. This is only required for using the stored documents in Chill. + Prepare migrations and other tools ********************************** @@ -179,7 +185,7 @@ Install fixtures This will generate user accounts, centers, and some basic configuration. The accounts created are: :code:`center a_social`, :code:`center b_social`, :code:`center a_direction`, ... The full list is -visibile in the "users" table: :code:`docker compose exec database psql -U app -c "SELECT username FROM users"`. +visible in the "users" table: :code:`docker compose exec database psql -U app -c "SELECT username FROM users"`. The password is always :code:`password`.