Small and simple https redirect written in go
3.3K
To use this simple https redirect:
docker run -p 80:80 -it ensignprojects/https-redirect
For more information go to https://github.com/JurrianFahner/docker/tree/master/https-redirect
Example:
http://www.example.com/some/url/file.something
will be forwarded to
https://www.example.com
Since version 2.0 the following environment variables are added to change the behavior of the redirect:
HOST example: -e HOST=google.comREDIRECTPATH example: -e REDIRECTPATH=true, this configuration forwards also the pathAlso logging to stdout is added.
Full example:
docker run -it -p 80:80 -e HOST=google.nl -e REDIRECTPATH=false --rm ensignprojects/https-redirect:v2.0
Content type
Image
Digest
Size
1.8 MB
Last updated
almost 10 years ago
docker pull ensignprojects/https-redirect