Simple HTTP redirection service

Aneurin Barker Snook 19a85abc4a rename package преди 11 месеца
.deploy ddf6ab993d add build, deploy workflows преди 1 година
.github ddf6ab993d add build, deploy workflows преди 1 година
internal 19a85abc4a rename package преди 11 месеца
.gitignore 2642e00208 rewrite to use a local db instead of csv преди 11 месеца
Dockerfile d0dfed5b24 add dockerfile, more elegant exit преди 1 година
LICENSE.md cc6b439b34 update documentation, add license преди 1 година
README.md cc6b439b34 update documentation, add license преди 1 година
go.mod 19a85abc4a rename package преди 11 месеца
go.sum 19a85abc4a rename package преди 11 месеца
main.go 19a85abc4a rename package преди 11 месеца

README.md

Short URL Service

A simple, static redirection service that redirects recognised paths to any other URL.

Configuration

Set environment variables:

  • HOST and PORT configure the HTTP listen server
  • CSV contains redirection data in CSV format

Environment variables can be set in the environment or a .env file.

:warning: CSV data is not loaded from a file!

Redirection data CSV

The CSV data must have two columns for the path and redirection URL, respectively. The first row is reserved for headings. Follow this example to get started:

path,url
/some/path,https://some-url.com

License

See LICENSE.md