The Local Training Node for The Sentinel AI
- Python Dependencies
pip3 install -r requirements.txt
- Gunicorn
pip3 install gunicorn
Create a .keystore
file with the following details. These can later be updated via the dashboard
PUBLIC_KEY=<Public Key of the Ethereum Account that receives the rewards>
HOST_NAME=<Hostname of the Machine>
Create a .env
file with the following details.
COORDINATOR_URL = <Hostname of the Coordinator>
PORT = 80
python app.py > app.log
gunicorn app:app --workers 1 --bind 0.0.0.0:5001 --log-file app.log --access-logfile access.log --log-level DEBUG &
sudo gunicorn3 --workers 3 --certfile '/etc/letsencrypt/live/sentinel-node1.anudit.dev/fullchain.pem' --keyfile '/etc/letsencrypt/live/sentinel-node1.anudit.dev/privkey.pem' --log-file app.log --access-logfile access.log --log-level DEBUG -b 0.0.0.0:443 app:app &