From ee8dc3ae1289419fb7636026aba892de5fc8bef8 Mon Sep 17 00:00:00 2001 From: Dan Morphis Date: Thu, 19 Jan 2023 12:35:06 -0900 Subject: [PATCH] Update installation-guide.rst Remove the JWT line from the env file and add a line to automatically generate and append a secure JWT secret. --- docs/installation-guide.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/installation-guide.rst b/docs/installation-guide.rst index 9cbbda3..cbd450f 100644 --- a/docs/installation-guide.rst +++ b/docs/installation-guide.rst @@ -75,7 +75,12 @@ Configure systemd GENIEACS_DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml NODE_OPTIONS=--enable-source-maps GENIEACS_EXT_DIR=/opt/genieacs/ext - GENIEACS_UI_JWT_SECRET=secret + + Generate a secure JWT secret and append to :file:`/opt/genieacs/genieacs.env`: + + .. code:: bash + + node -e "console.log(\"GENIEACS_UI_JWT_SECRET=\" + require('crypto').randomBytes(128).toString('hex'))" >> /opt/genieacs/genieacs.env Set file ownership and permissions: