Server for MindLogger PDF reports
- Node >= 16
npm install
fontconfig
sudo apt-get install libfontconfig
sudo yum install fontconfig
cp env.example .env
mkdir keys
mkdir outputs
cd keys
openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:4096 -out private.pem
openssl rsa -in private.pem -pubout -out public
sqlite3 passwords "VACUUM;"
After running those commands you will have 3 files:
ls
passwords private.pem public
The server public key will be in keys/public
npm run start
docker build -t mindlogger-report-server:latest -f ./Dockerfile .
This requires Generating keys and creating database in keys folder.
docker run -d \
-v "./keys:/app/keys" \
-p "3000:3000" \
--name mindlogger-report-server \
mindlogger-report-server:latest