Simple URL shortener backed by sqlite.
Using the API
$ curl -X POST http://mydomain.com/save -d '{"url": "http://google.com"}'
{"error":"","id":"M","url":"http://mydomain.com/M"}
There's also a simple web ui available
docker run -dv /local/data/path:/data \
-p 1337:1337 \
-e BASE_URL=http://mydomain.com \
-e DB_PATH=/data \
jhaals/url-shortener
or use docker-compose
docker-compose up -d
- Open the url https://maker.ifttt.com/trigger//with/key/ to see the certificate. Download that one.
- Upload that certificate to github
- Use this certificate in the
Dockerfile