1 unstable release
| 0.3.0 | Jul 23, 2025 |
|---|
#589 in HTTP server
47 downloads per month
14KB
219 lines
url-redirect
Welcome to url-redirect 🎉
url-redirect is a trivial, headless URL redirection service.
Quickstart
To start the server, simply run url-redirect. By default, url-redirect expects config.toml and db.toml. You can
override this behavior by exporting CONFIG_FILE=/path/to/config.toml respective DB_FILE=/path/to/db.toml into the
environment.
config.toml
[server]
# The address to listen on
address = "0.0.0.0:8088"
# The connection hart limit; i.e. the amount of threads to spawn at max to process incoming connections
# This field is optional, the default value is 2048
#connection_limit = 2048
db.toml
# The redirect database
# Please note: All redirect paths must start with a leading `/`, like in the example
[redirects]
"/testolope" = "https://example.com"
Dependencies
~3–4.5MB
~95K SLoC