- Proxifies all HTTP requests over HTTPS
- Caches responses on the server, based on the Cache-control header (reduces direct API hits to the Nexus core)
git checkout python310
pip3 install -r requirements.txt
To run the production server
sudo apt install python3-waitress
SERVER_URL="http://api.nexus-interactions.io:8080" waitress-serve --listen=*:5001 app:app
sudo apt install gunicorn3
SERVER_URL="http://api.nexus-interactions.io:8080" gunicorn3 -w 1 -b 0.0.0.0:5001 app:app
To increase number of worker threads for gunicorn3 use -w option.