You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# codecov-gateway
2
2
Gateway for self hosted. The brains!
3
3
4
-
[](https://github.com/codecov/codecov-gateway/actions/workflows/gcr.yml)
Control routing to various Codecov services. This is meant to be functionally equivalent to ambassador/emissary which we use in production. The primary purpose is to allow independent scaling of various services based on traffic levels.
@@ -12,18 +12,18 @@ End user configuration via environment variables was a goal while creating this.
12
12
```text
13
13
Format is: VAR=default # info
14
14
15
-
CODECOV_API_HOST=api # This is the host to access the codecov api
15
+
CODECOV_API_HOST=api # This is the host to access the codecov api
16
16
CODECOV_API_PORT=8000 # The port to access the codecov api
17
17
CODECOV_API_SCHEME=http # The scheme on which to access the codecov api. http or https
18
-
CODECOV_API_HOST_HEADER="\$http_host" # The host to send as the host header. Default passes through host. Useful to set for local envs.
19
-
CODECOV_IA_HOST=IA
18
+
CODECOV_API_HOST_HEADER="%[req.hdr(Host)]" # The host to send as the host header. Default passes through host. Useful to set for local envs.
19
+
CODECOV_IA_HOST=api
20
20
CODECOV_IA_PORT=8000
21
21
CODECOV_IA_SCHEME=http
22
-
CODECOV_IA_HOST_HEADER="\$http_host"
22
+
CODECOV_IA_HOST_HEADER="%[req.hdr(Host)]"
23
23
CODECOV_DEFAULT_HOST=frontend
24
-
CODECOV_DEFAULT_PORT=5000
24
+
CODECOV_DEFAULT_PORT=8080
25
25
CODECOV_DEFAULT_SCHEME=http
26
-
CODECOV_DEFAULT_HOST_HEADER="\$http_host"
26
+
CODECOV_DEFAULT_HOST_HEADER="%[req.hdr(Host)]"
27
27
CODECOV_MINIO_HOST=minio
28
28
CODECOV_MINIO_PORT=9000
29
29
CODECOV_MINIO_SCHEME=http
@@ -38,7 +38,7 @@ Use public codecov api, local IA and qa for web
1. Mount a valid cert in the container at `/etc/codecov/ssl/certs/cert.crt`
55
-
2. Configure the env `CODECOV_GATEWAY_SSL_ENABLED=true`
55
+
2. Configure the env `CODECOV_GATEWAY_SSL_ENABLED=true`
56
56
57
57
### Proxy
58
58
1. Configure the env `CODECOV_GATEWAY_PROXY_MODE_ENABLED=true`
59
-
All requests will now be sent on to the configured CODECOV_DEFAULT host/port.
59
+
All requests will now be sent on to the configured `CODECOV_DEFAULT` host/port.
60
60
61
61
### Minio
62
62
This is mostly intended for when using with docker compose. It makes /export and /archive route to the minio host. To enable minio features use the env var `CODECOV_GATEWAY_MINIO_ENABLED=true`
0 commit comments