From c41ee2b586069ab0d36dd07e40f228f574c4be30 Mon Sep 17 00:00:00 2001 From: Benjamin Loison <benjamin.loison@orange.fr> Date: Thu, 20 Feb 2025 15:55:20 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Ajout=20de=20l'instruction=20pour=20g=C3=A9?= =?UTF-8?q?n=C3=A9rer=20un=20sel=20dans=20`README.md`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Voir [Benjamin_Loison/tchapbot/issues/4](https://code.peren.gouv.fr/Benjamin_Loison/tchapbot/-/issues/4). --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1f9b876..10430a3 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,11 @@ cp .dev.env .env Il est conseillé de changer la valeur du sel (`salt`) pour ne pas avoir celle par défaut. Il faudra en revanche qu'elle ne change pas entre deux sessions. +Un sel peut être généré de la manière suivante: + +```bash +python -c 'import secrets; print(secrets.token_bytes(16))' +``` ## Utilisation tchap_bot -- GitLab From 5f1866846ea11210b8e14277576e753958f7ae06 Mon Sep 17 00:00:00 2001 From: Benjamin Loison <benjamin.loison@orange.fr> Date: Mon, 3 Mar 2025 10:38:26 +0100 Subject: [PATCH 2/2] Specify the GitLab repository URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 10430a3..cca4a2c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ pip install tchap-bot --index-url https://code.peren.fr/api/v4/projects/83/packa ```bash # Récupération du code avec Git -git clone ${GITLAB_URL} +git clone https://code.peren.gouv.fr/open-source/tchapbot cd tchap_bot # Création d'un virtualenv et installation des dépendances requises -- GitLab