Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 804 Bytes

README.markdown

File metadata and controls

32 lines (20 loc) · 804 Bytes

Shorts

Poor man's bit.ly. Given a map of urls in the config file, it will respond to a known (short) key with a redirect to the long URL.

It's pricacy-friendly. There is no tracking, no logging, and no stats.

Build

$ GOOS=linux go build

Deploy

The binary as present in the root directory of this project is copied to the target machine by the deployment code. Run it from deployment with:

$ ansible-playbook playbook.yml -i foo.example.com,

Development

  • Build and run with

    $ go build && ./shorts`

TODO

  • Create pipeline that deploys on changes / releases
  • fswatch the config file and reload the URLs when changed (saves a restart when just the URLs are re-deployed)