File tree 3 files changed +40
-3
lines changed
3 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 42
42
-
43
43
name : Upload SARIF file
44
44
if : ${{ steps.scan.outputs.sarif != '' }}
45
- uses : github/codeql-action/upload-sarif@v2
45
+ uses : github/codeql-action/upload-sarif@v3
46
46
with :
47
47
sarif_file : ${{ steps.scan.outputs.sarif }}
48
48
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/statista-oss/proxy-rout
4
4
LABEL org.opencontainers.image.description="haproxy configurable through env vars for different routing strategies"
5
5
6
6
USER root
7
- RUN apk add --no-cache curl socat
7
+ RUN apk add --no-cache socat
8
8
9
9
USER haproxy
10
10
Original file line number Diff line number Diff line change @@ -88,4 +88,41 @@ curl -I --cookie "my_app_routing=new" localhost:80
88
88
89
89
## Usage
90
90
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)
You can’t perform that action at this time.
0 commit comments