1 unstable release
| 0.3.0 | Jul 23, 2025 |
|---|
#897 in HTTP server
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
~2.8–4MB
~91K SLoC