Skip to content

Commit

Permalink
feat(docs): add some todos and docs (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Schönthal <[email protected]>
  • Loading branch information
digitalkaoz and Robert Schönthal authored Dec 18, 2024
1 parent 71c40c4 commit 14914aa
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
-
name: Upload SARIF file
if: ${{ steps.scan.outputs.sarif != '' }}
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/statista-oss/proxy-rout
LABEL org.opencontainers.image.description="haproxy configurable through env vars for different routing strategies"

USER root
RUN apk add --no-cache curl socat
RUN apk add --no-cache socat

USER haproxy

Expand Down
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,41 @@ curl -I --cookie "my_app_routing=new" localhost:80

## Usage

tbd
### Docker-Compose

```yaml
routing-proxy:
image: ghcr.io/statista-oss/routing-proxy:latest
environment:
STRATEGY: PERCENTAGE
OLD_DOMAIN: haproxy.com:443
NEW_DOMAIN: apache.org:443
COOKIE_PERCENTAGE_NAME: my_app
PERCENTAGE_OLD: 50
PERCENTAGE_NEW: 50
ports:
- 80:80
```
currently only HTTP (as it mostly will run behind an SSL loadbalancer anyways) is supported.
### ECS Fargate
when defining this image in your `Task-Definition`, make sure you add those `systemControls`:

```js
{
systemControls: [
{
namespace: 'net.ipv4.ip_unprivileged_port_start',
value: '0',
}
]
}
```

## TODOS

- [ ] add SSL support
- [ ] logging support?
- [ ] route based on specific users/user-groups (cookie lookups)

0 comments on commit 14914aa

Please sign in to comment.