This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #2 - PLTFRS-8559 - Use port 8080 for health check
- Loading branch information
sgaestel
committed
Dec 13, 2017
1 parent
6a26eb0
commit e02da7f
Showing
2 changed files
with
29 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,40 @@ | ||
Pointsman | ||
================ | ||
# Pointsman | ||
|
||
> Simple haproxy docker image redirecting HTTP => HTTPS behind an AWS ELB | ||
Usage | ||
----- | ||
## 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`. | ||
|
||
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 | | ||
|________________________________________| | ||
--> HTTPS HTTP | ||
| | | | ||
| v v | ||
-------|----[:443]----[:80]-------- | ||
ELB | | | | | | ||
| | |_ _ | | | ||
| | | | | | ||
| | | | | | ||
|-------|---------|--|--------------| | ||
| v v | ||
-------|--------[:8080]------------ | ||
| | | | | ||
EC2 | --- No - HTTPS | | ||
| or | | ||
| HTTP /check ? | | ||
| | | | ||
| frontend | | ||
| | | | ||
| [:3000] | | ||
| backend | | ||
|___________________________________| | ||
``` | ||
|
||
See `haproxy.cfg` file for more details. | ||
|
||
License | ||
------- | ||
## License | ||
|
||
MIT © [Sierra Wireless](http://wwww.sierrawireless.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters