Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
/ pointsman Public archive

Simple haproxy docker image redirecting HTTP => HTTPS behind an AWS ELB

License

Notifications You must be signed in to change notification settings

AirVantage/pointsman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pointsman

Simple haproxy docker image redirecting HTTP => HTTPS behind an AWS ELB

Usage

docker run -p 8080:8080 -p 8081:8081 -e HEALTH_CHECK_URI=/check -e FRONTEND_PORT=8080 -e BACKEND_HOST=172.17.0.1 -e BACKEND_PORT=3000 --name pointsman airvantage/pointsman

Binds your ELB HTTP and HTTPS listeners on FRONTEND_PORT and your backend with BACKEND_HOST and BACKEND_PORT. We also open :8081 port for the ELB health check on URI HEALTH_CHECK_URI.

                                    -->  HTTPS     HTTP
                                   |       |        |
                                   |       v        v
                   ----------------|----[:443]----[:80]----
           ELB    |                |       |        |      |
                  |  healthcheck   |       |_     _ |      |
                  |    /check      |          |  |         |
                  |       |        |          |  |         |
                  |-------|--------|----------|--|---------|
                          |        |          v  v
                   ----[:8081]-----|--------[:8080]--------
                  |       |        |           |           |
            EC2   |       |         --- No - HTTPS?        |
                  |       |                    |           |
                  |       |                 frontend       |
                  |       |                    |           |
                  |        ------ > /check  [:3000]        |
                  |                         backend        |
                  |________________________________________|
                  

See haproxy.cfg file for more details.

License

MIT © Sierra Wireless

About

Simple haproxy docker image redirecting HTTP => HTTPS behind an AWS ELB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published