A tiny Docker image which redirects HTTP requests to another URL.
Uses Docker.StaticHTTPD.
docker run -d -p 8080:8080 -e REDIRECT_LOCATION=https://github.com/teddybeermaniac ghcr.io/teddybeermaniac/docker.httpredirect:latest
Name | Default | Description |
---|---|---|
REDIRECT_LOCATION | The location that the visitor should be redirected to | |
REDIRECT_PERMANENT | If empty, then a temporary (302) redirect is done, otherwise it's a permanent (301) one |