Server that handles the actual redirects.
Build with:
go build -o server ./cmd/server
You can see the available command line options by running:
./server --help
See run.sh for how I run the server during development. You can test the server locally by adding a header:
curl --header "Host: redirect2me" --header "X-Redirect2me-Debug: 1" http://localhost:4000
You can also specific options via a config file (/etc/redirect2me/config.yaml or via the environment (names are uppercased command line argument parameter names).
Copyright (c) 2018-2026 by Andrew Marcuse. All Rights Reserved.