Sign inSign up

ensignprojects/https-redirect

By ensignprojects

Updated almost 10 years ago

Small and simple https redirect written in go

Image
1

3.3K

ensignprojects/https-redirect repository overview

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.com
  • REDIRECTPATH example: -e REDIRECTPATH=true, this configuration forwards also the path

Also 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

Tag summary

Content type

Image

Digest

Size

1.8 MB

Last updated

almost 10 years ago

docker pull ensignprojects/https-redirect