Skip to content

uhlig-it/shorts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published