Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix minio path mapping #97

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ _start_haproxy() {
BACKENDS="-f /etc/haproxy/1-backends.conf"
envsubst < /etc/haproxy/1-backends.conf.template > /etc/haproxy/1-backends.conf
MINIO_FILE=""
if [ "$CODECOV_GATEWAY_MINIO_ENABLED" ]; then
if [ "$CODECOV_GATEWAY_MINIO_ENABLED" ] && [ "$routing_map" != "proxy" ]; then
echo 'Codecov gateway minio enabled'
if [ $CODECOV_MINIO_SCHEME = "https" ]; then
export CODECOV_MINIO_SSL_FLAG=$ssl_string
fi
envsubst < /etc/haproxy/1-minio.conf.template > /etc/haproxy/1-minio.conf
cat /etc/haproxy/minio.map >> /etc/haproxy/routing.map
cat /etc/haproxy/minio.map >> /etc/haproxy/codecov.map
MINIO_FILE="-f /etc/haproxy/1-minio.conf"
fi
echo "Starting haproxy"
Expand Down