File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV CODECOV_API_SCHEME=http
1818ENV CODECOV_API_HOST_HEADER="%[req.hdr(Host)]"
1919ENV CODECOV_API_ADMIN_ENABLED=false
2020ENV CODECOV_API_ADMIN_PATH=admin
21+ ENV CODECOV_API_ADMIN_DEBUG_ENABLED=false
2122ENV CODECOV_IA_HOST=api
2223ENV CODECOV_IA_PORT=8000
2324ENV CODECOV_IA_SCHEME=http
@@ -34,8 +35,8 @@ ENV CODECOV_GATEWAY_HTTP_PORT=8080
3435ENV CODECOV_GATEWAY_HTTPS_PORT=8443
3536ARG COMMIT_SHA
3637ARG VERSION
37- ENV BUILD_ID $COMMIT_SHA
38- ENV BUILD_VERSION $VERSION
38+ ENV BUILD_ID= $COMMIT_SHA
39+ ENV BUILD_VERSION= $VERSION
3940EXPOSE 8080
4041EXPOSE 8443
4142
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ CODECOV_API_SCHEME=http # The scheme on which to access the codecov api. http or
1818CODECOV_API_HOST_HEADER="%[req.hdr(Host)]" # The host to send as the host header. Default passes through host. Useful to set for local envs.
1919CODECOV_API_ADMIN_ENABLED=false # Enable/disable the admin endpoint proxy
2020CODECOV_API_ADMIN_PATH=admin # The path for api's admin interface
21+ CODECOV_API_ADMIN_DEBUG_ENABLED=false # Enable/disable the admin path for Django's debug toolbar in local development
2122CODECOV_IA_HOST=api
2223CODECOV_IA_PORT=8000
2324CODECOV_IA_SCHEME=http
Original file line number Diff line number Diff line change 33^/static(\/.*)?$ be_api
44^/internal(\/.*)?$ be_api
55${API_ADMIN_PATH_PREFIX}^/${CODECOV_API_ADMIN_PATH}(\/.*)?$ be_api
6+ ${API_ADMIN_DEBUG_PREFIX}^/__debug__(\/.*)?$ be_api
67^/graphql(\/.*)?$ be_api
78^/webhooks(\/.*)?$ be_api
89^/frontend_health$ be_default
Original file line number Diff line number Diff line change @@ -97,6 +97,13 @@ _start_haproxy() {
9797 echo ' Codecov api admin endpoint proxy disabled'
9898 export API_ADMIN_PATH_PREFIX=" # (disabled) "
9999 fi
100+ if [ " $CODECOV_API_ADMIN_DEBUG_ENABLED " = " true" ]; then
101+ echo ' Codecov api admin debug endpoint proxy enabled'
102+ export API_ADMIN_DEBUG_PATH_PREFIX=" "
103+ else
104+ echo ' Codecov api admin debug endpoint proxy disabled'
105+ export API_ADMIN_DEBUG_PATH_PREFIX=" # (disabled) "
106+ fi
100107 envsubst < /etc/haproxy/codecov.map.template > /etc/haproxy/codecov.map
101108 MINIO_FILE=" "
102109 if [ " $CODECOV_GATEWAY_MINIO_ENABLED " ] && [ " $routing_map " != " proxy" ]; then
You can’t perform that action at this time.
0 commit comments