Skip to content

Commit 14914aa

Browse files
digitalkaozRobert Schönthal
and
Robert Schönthal
authored
feat(docs): add some todos and docs (#1)
Co-authored-by: Robert Schönthal <[email protected]>
1 parent 71c40c4 commit 14914aa

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
-
4343
name: Upload SARIF file
4444
if: ${{ steps.scan.outputs.sarif != '' }}
45-
uses: github/codeql-action/upload-sarif@v2
45+
uses: github/codeql-action/upload-sarif@v3
4646
with:
4747
sarif_file: ${{ steps.scan.outputs.sarif }}
4848

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/statista-oss/proxy-rout
44
LABEL org.opencontainers.image.description="haproxy configurable through env vars for different routing strategies"
55

66
USER root
7-
RUN apk add --no-cache curl socat
7+
RUN apk add --no-cache socat
88

99
USER haproxy
1010

README.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,41 @@ curl -I --cookie "my_app_routing=new" localhost:80
8888

8989
## Usage
9090

91-
tbd
91+
### Docker-Compose
92+
93+
```yaml
94+
routing-proxy:
95+
image: ghcr.io/statista-oss/routing-proxy:latest
96+
environment:
97+
STRATEGY: PERCENTAGE
98+
OLD_DOMAIN: haproxy.com:443
99+
NEW_DOMAIN: apache.org:443
100+
COOKIE_PERCENTAGE_NAME: my_app
101+
PERCENTAGE_OLD: 50
102+
PERCENTAGE_NEW: 50
103+
ports:
104+
- 80:80
105+
```
106+
107+
currently only HTTP (as it mostly will run behind an SSL loadbalancer anyways) is supported.
108+
109+
### ECS Fargate
110+
111+
when defining this image in your `Task-Definition`, make sure you add those `systemControls`:
112+
113+
```js
114+
{
115+
systemControls: [
116+
{
117+
namespace: 'net.ipv4.ip_unprivileged_port_start',
118+
value: '0',
119+
}
120+
]
121+
}
122+
```
123+
124+
## TODOS
125+
126+
- [ ] add SSL support
127+
- [ ] logging support?
128+
- [ ] route based on specific users/user-groups (cookie lookups)

0 commit comments

Comments
 (0)