Sign inSign up

millergeek/ssl-redirect

By millergeek

•Updated almost 6 years ago

Redirect HTTP to HTTPS with Docker

Image
0

402

millergeek/ssl-redirect repository overview

⁠go-redirect Docker Build Status

Join the chat at https://gitter.im/smiller171/go-redirect

Redirect HTTP to HTTPS with Docker


Docker Hub⁠

⁠What is this?

This image accepts any http request and redirects to the https version of the same page.
It does not serve any pages.

⁠What is this for?

The primary reason for this image is for doing SSL termination on a load balancer (eg: AWS ELB) in the simplest possible way.

⁠How do I use it?

  • Run this image on any TCP port, and your own web server image on another.
docker run -d -p 8080:80 scottmiller171/ssl-redirect
docker run -d -p 80:80 my-web-server-image
  • Forward HTTP 80 on your load balancer to whatever port this image is running on.
  • Forward HTTPS 443 on your load balancer to whatever port your own web server is running on.

All HTTP requests will hit this image and be redirected to make HTTPS request. This is abstracted from the user.

⁠How do I build it myself?

docker build -t ssl-redirect .
docker run ssl-redirect

Tag summary

Content type

Image

Digest

Size

1.6 MB

Last updated

almost 6 years ago

docker pull millergeek/ssl-redirect