Simple HTTP redirection service

Aneurin Barker Snook ddf6ab993d add build, deploy workflows 1 yıl önce
.deploy ddf6ab993d add build, deploy workflows 1 yıl önce
.github ddf6ab993d add build, deploy workflows 1 yıl önce
.gitignore 0248520d05 add simple url redirector 1 yıl önce
Dockerfile d0dfed5b24 add dockerfile, more elegant exit 1 yıl önce
LICENSE.md cc6b439b34 update documentation, add license 1 yıl önce
README.md cc6b439b34 update documentation, add license 1 yıl önce
go.mod d0dfed5b24 add dockerfile, more elegant exit 1 yıl önce
go.sum 0248520d05 add simple url redirector 1 yıl önce
main.go d0dfed5b24 add dockerfile, more elegant exit 1 yıl önce

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