This container will redirect any request to the configured URL.
docker run -d --rm --name redirect2https -p 8080:80 -e "REDIRECT_TARGET=https://google.com" ajoergensen/web-redirect
REDIRECT_TARGET
: Target serverREDIRECT_PATH
: URI path on target server, defaults to$request_uri
REDIRECT_CODE
: HTTP code to use, defaults to301
(permanent)REDIRECT_SCHEME
: http or https, defaults to$scheme