TinyProxyAuthorizer is a Flask app for self serve IP whitelisting.
Setup
- Install the following packages (install line is for aptitude, modify as necessary):
apt-get install python python-pip python-virtualenv git screen
- Clone the repo:
git clone https://github.com/PerryBhandal/TinyProxyAuthorizer.git
- CD into the script directory:
cd tiny_proxy_authorizer
- Copy authorized.json.default to authorized.json
cp authorized.json.default authorized.json
- Create a virtual environment, activate it then install all dependencies.
virtualenv venv; source venv/bin/activate; pip install -r requirements/production.txt
- Ensure your VENV is activated, then start the application in a detachable screen on a user that has write privileges on /etc/tinyproxy.conf
./start_authorizer.sh