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

Latest commit

 

History

History
42 lines (32 loc) · 1.72 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.72 KB

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