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:
1 parent
d1c01e0848
commit
ee8dc3ae12
1 file changed
+6
-1
@@ -75,7 +75,12 @@ Configure systemd
|
|||||||
GENIEACS_DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml
|
GENIEACS_DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml
|
||||||
NODE_OPTIONS=--enable-source-maps
|
NODE_OPTIONS=--enable-source-maps
|
||||||
GENIEACS_EXT_DIR=/opt/genieacs/ext
|
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:
|
Set file ownership and permissions:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user