# download and install miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda-latest-Linux-x86_64.sh
./Miniconda-latest-Linux-x86_64.sh
Set user credentials in docker-compose.yml
and same are used in production.py
.
python manage.py rqworker data --settings=wifiservice.settings.production
python manage.py rqworker instructions --settings=wifiservice.settings.production
python manage.py rqscheduler --queue instructions -i 10 -v 3 --settings=wifiservice.settings.production
To debug and visualise redis-queue, we use rq-dashboard.
- User enters the password
- Authentication on the server with the password and receives token for the session
- Uses that token for each request
- No check required if the requests are from IPs 146.169.10.*
- All should be token based authentication
- A middleware which will rely on a table which will contain date of creation of token, token itself and for whom it is being used.
- All requests should be logged.
- A request will be accepted if coming from safe IPs, token will be returned if request is for that and passed if token is correct.
sudo apt-get install chromium-chromedriver