2019-03-18 22:51:09 +01:00
2019-03-18 14:02:55 +01:00
2019-03-18 16:35:35 +01:00
2019-03-18 22:45:56 +01:00
2019-03-18 16:23:52 +01:00
2019-03-18 22:40:08 +01:00
2019-03-18 22:51:09 +01:00

Short - simple go url shortner

License Build Status

Short is a very simple url shortener build in golang using web.go module and redis (redigo) for storring URLs

Syntax is:

Usage of short:
  -addr string
        Address to listen for connections (default "localhost:8080")
  -domain string
        Domain to write to the URLs (default "localhost")
  -path string
        Path to the base URL (https://localhost/PATH/... remember to append a / at the end
  -proto string
        proto to the base URL (HTTPS://localhost/path/... no real https here just to set the url (for like a proxy offloading https (default "https")
  -redis string
        ip/hostname of the redis server to connect (default "localhost:6379")
  -v    prints current version

Includes a Dockerfile to for a standalone docker image.

To shorten a URL just post on /, you will get a reply with the shortened URL

curl -X POST -d "url=http://google.com" http://localhost:8080/
URL shortened at: https://localhost:8080/9mbIcOwsVP

Try it at https://thebarrens.nu/short/

Description
No description provided
Readme 149 KiB
Languages
Go 71.3%
HTML 27.6%
Dockerfile 1.1%