Simple HTTP redirection service
|
|
1 рік тому | |
|---|---|---|
| .deploy | 1 рік тому | |
| .github | 1 рік тому | |
| internal | 1 рік тому | |
| .gitignore | 1 рік тому | |
| Dockerfile | 1 рік тому | |
| LICENSE.md | 1 рік тому | |
| README.md | 1 рік тому | |
| go.mod | 1 рік тому | |
| go.sum | 1 рік тому | |
| main.go | 1 рік тому |
A simple, static redirection service that redirects recognised paths to any other URL.
Set environment variables:
HOST and PORT configure the HTTP listen serverCSV contains redirection data in CSV formatEnvironment variables can be set in the environment or a .env file.
:warning: CSV data is not loaded from a file!
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
See LICENSE.md