The Coordinator Node for The Sentinel AI
- Python Dependencies
pip3 install -r requirements.txt
- Gunicorn
apt install gunicorn3
Setup a .env
file in the root directory with the following details,
PRIVATEKEY = <private key of the Ethereum address>
ETHADDRESS = <public key of the Ethereum address>
PORT = <port_number>
sudo gunicorn3 app:app --workers 3 --bind 0.0.0.0:80 --log-file app.log --access-logfile access.log --log-level DEBUG &
sudo gunicorn3 --workers 3 --certfile '/etc/letsencrypt/live/sentinel-coor.anudit.dev/fullchain.pem' --keyfile '/etc/letsencrypt/live/sentinel-coor.anudit.dev/privkey.pem' --log-file app.log --access-logfile access.log --log-level DEBUG -b 0.0.0.0:443 app:app &
pylint --rcfile=pylintrc app.py