# history-edge
Edge infra for history-Service

# Description
A history-edge reverse proxy ALB  will sit in front on history-service ALB serving all the `history.internal.justin.tv` traffic. 
The ALB will receive the request and mirror the request to configured location defined in nginx config file.

| Config Enviornment | Config file name|
|-------------|-----------------------|
| staging | nginx-staging.conf |
| prod| nginx-prod.conf |

The response from the `/` location will be returned to the caller, and the `/mirror` response will be ignored.

# Architecture
More information and architecture about the service can be found [here](https://docs.google.com/document/d/1yGwCOvqwDHjYpIDXQm00vS9GagsAOuVebYU7J9QCTQY/edit?usp=sharing)

# CI/CD
History Infra CI/CD will be based on branch names. Following branches will be deployed to the corresponding environment via CD.

| Branch Name | Enviornment | Affected DNS endpoint |
|-------------|-------------|-----------------------|
| `dev` | staging | **history-staging.internal.justin.tv** |
| `master` | prod | **history.internal.justin.tv** |


