Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sintef/www-redirector
This is a tiny HTTP server that redirects all requests permanently to another server.
https://github.com/sintef/www-redirector
helm-chart http-redirect http-server over-engineering rust
Last synced: about 1 month ago
JSON representation
This is a tiny HTTP server that redirects all requests permanently to another server.
- Host: GitHub
- URL: https://github.com/sintef/www-redirector
- Owner: SINTEF
- License: wtfpl
- Created: 2023-02-07T13:39:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T20:03:52.000Z (10 months ago)
- Last Synced: 2024-02-17T20:42:38.769Z (10 months ago)
- Topics: helm-chart, http-redirect, http-server, over-engineering, rust
- Language: Rust
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# www-redirector
This is a tiny HTTP server that redirects all requests permanently to another server.
## Configuration
Use the `REDIRECT_URL` environment variable to set the URL to redirect to. The path and query string of the request will be appended to the URL.
## Sotware Container Image
```
ghcr.io/sintef/www-redirector
```### Helm Chart
A Helm chart is available in the [charts/www-redirector](charts/www-redirector/) directory.
## Why
Sometimes it is fun to over engineer things.
It can also be simpler to use a tiny HTTP server to handle redirects compared to configuring a web server to do the redirects correctly. Especially when you are using an Kubernetes ingress controller or some load balancers and you don't feel like spending hours to figure out how to configure them correctly.
You could do the same thing using any web server, such as Caddy or Nginx. But the 50 lines of rust code work too.
## License
The source code is released under the WTFPL license. See the LICENSE file for more information.