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.
This commit is contained in:
Dan Morphis authored and Zaid Abdulla committed 2023-01-22 17:41:55 -08:00
1 parent d1c01e0848
commit ee8dc3ae12
1 file changed
+6 -1
+6 -1
View File
@@ -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: