abbr is a self-hosted URL shortener written in Python/flask.
Expiry, authentication and a bookmarklet still need to be done. Install information, and packaging, too.
-
shorten a URL in the web interface, optionally give a custom short name
-
use
?info
to show a URL's redirect URL instead of going there -
use the API to generate short URLs:
curl -X POST -d 'http://google.com' $ABBR_DOMAIN $ABBR_DOMAIN/sdfasdfs curl -X POST -d '{"url": "https://ooogle.com", "expiry": "2016-10-14 13:30:00", "name": "myshortname"}' $ABBR_DOMAIN $ABBR_DOMAIN/myshortname
-
a simple config file for self hosting
- set an expiry time
- a bookmarklet
- optional support for login tokens/let only authenticated users a) see or b) create shortened URLs
- no tracking of clicks
- no stats on anything
- no plugins
Either choose to install with docker, or try the ansible role.
docker-compose build --pull
docker-compose run web initdb
docker-compose up