lusd stands for little url shortening daemon and is what it says.
- CouchDB Database
- python-configobj
- python-couchdb
- python-twisted
- Create database in CouchDB
- Add couchdb/access.json as _design/access document to your database
- Adapt config.cfg to your needs
Start the daemon:
$ ./lusd
It will run on port 8080 per default. Browse to http://mydomain:8080/static/create.html to create short urls. Everything in the static/ subdir will be served by lusd, e.g. for your css etc.
If you'd like to run lusd behind a webserver as Apache, you could use this rewrite rule:
RewriteEngine on
RewriteBase /
RewriteRule ^\+(.+) http://localhost:8080/+$1 [P]