Public Repository

Last pushed: a year ago
Short Description
Small and simple https redirect written in go
Full Description


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
Docker Pull Command
Owner
ensignprojects

Comments (0)