163.gs url shorten service
This is the source code of http://163.gs.
163.gs is written by Python with Tornado.
Generate shorten url interface
curl -d "url=http://EverET.org" http://163.gs/short/
Return short url if success. You can check whether the response is started with
http: to determine if it is successful.
If fail, it returns the error message.
etc/config.py and modify it if necessary.
pip install -r requirements.txt to install dependency. We advise you to install them in virtualenv.
$ virtualenv .env $ source .env/bin/activate $ pip install -r requirements.txt
And you can run execute
./main.py to run it.
etc/supervisor/163.gs.conf to your supervisord config folder, and modify it accordingly. Then you can run it with supervisord.
It will open two processes that listen on 8850, 8851, you can use
etc/nginx/163.gs as your nginx config to proxy it.