Install
- install node js ( https://nodejs.org/it/download/ )
- clone the repo ( git clone https://github.com/trma1big/wfm.git )
- cd wfm
- npm install
- node install.js
- update .env data in order to customize your installation (don't remove key_crypt and iv_crypt just created by install.js)
- execute node app.js
during the node install.js process the .env conf file is changed with the random key and iv values in order to update admin user password.
this values are saved in 2 variable and are used in the application to encrypt new user password or decrypt the existing during the logon process.
key_crypt = ************************************************************
iv_crypt = *******************************
you have/could change with an editor some value on .env in order to manage and secure the app.
ACCESS_TOKEN_SECRET=HERE THE TOKEN SECRET (you have to change it with a sequence of chars)
ACCESS_TOKEN_LIFE=30m (token lifetime)
REFRESH_TOKEN_SECRET=HERE THE TOKEN REFRESH SECRET (you have to change it with a sequence of chars)
REFRESH_TOKEN_LIFE=2h (refresh token lifetime)
USE_SSL=0 (use or not SSL, 0 not enabled)
CERT= (cert path to be used if you want to start https site)
KEY= ( cert key path to be used if you want to start https site)
PORT = 80 (change to the port value you wants use )
HOST = 0.0.0.0 (0.0.0.0 means all ip configured)
CONF_FOLDER=./db (where to save database information - users and workflows json- )
WF_FOLDER=./wf ( where to upload BPMn files)
PATHLOG=./log ( where to save app log and audit log if enabled )
enable or disable Audit log in order to track changes on configurations and status changes.
AUDIT=0 (0 disabled 1 Enabled)