Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/virtualzone/http-redirect
Tiny HTTP server which redirects HTTP requests to a specific target.
https://github.com/virtualzone/http-redirect
docker http http-redirect http-redirects http-server kubernetes utility webserver
Last synced: 1 day ago
JSON representation
Tiny HTTP server which redirects HTTP requests to a specific target.
- Host: GitHub
- URL: https://github.com/virtualzone/http-redirect
- Owner: virtualzone
- License: gpl-3.0
- Created: 2022-06-17T05:32:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-17T19:23:47.000Z (over 2 years ago)
- Last Synced: 2024-08-02T15:47:38.049Z (3 months ago)
- Topics: docker, http, http-redirect, http-redirects, http-server, kubernetes, utility, webserver
- Language: Go
- Homepage: https://virtualzone.de
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP Redirect
**A tiny HTTP server written in Go which does one thing: Redirect incoming requests to another URL.**## Quick start
To run with Docker and redirect incoming requests to `https://virtualzone.de`, use:```bash
docker run --rm -d \
-p 8080:8080 \
-e TARGET="https://virtualzone.de" \
ghcr.io/virtualzone/http-redirect
```## Environment variables
Use environment variables to configure HTTP Redirect:Env | Default | Description
--- | --- | ---
LISTEN_ADDR | 0.0.0.0:8080 | TCP Listening address and port
TARGET | <empty> | http://localhost/
APPEND_PATH | 1 | Append path from requested URL to redirect URL
STATUS_CODE | 301 | HTTP Status Code