Skip to content

chrlns/lusd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lusd

lusd stands for little url shortening daemon and is what it says.

Requirements

  • CouchDB Database
  • python-configobj
  • python-couchdb
  • python-twisted

Setup

  • Create database in CouchDB
  • Add couchdb/access.json as _design/access document to your database
  • Adapt config.cfg to your needs

Local startup

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]

About

Little URL shortening daemon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published