Mirror Domain Distribution Central Service
1. GET site domains by rank and status GET /domains/$site/?status=up&rank=0 or RESTful GET /domains/$site/up Params: site: The site id, required rank: The domain rank, default is 0, i.e. public, higher rank requires higher authority. status: The accessible status, default is up,i.e. not blocked. Enum(up|down) Output: Domain list seperated by line feed char 2. PUT /domains/$site/ Body:up=a.example.com,b.example.com&down=x.example.com Params: site: The site ID up: up domain split by comma or space down: down domain split by comma or space
Clone this repository.
cd src;
pip install -r requirements.txt;
touch settings_local.py;
python app.py;