Skip to content

Commit

Permalink
Merge pull request #97 from derklaro/fix-minio-path-mapping
Browse files Browse the repository at this point in the history
fix minio path mapping
  • Loading branch information
trent-codecov authored Dec 30, 2024
2 parents 34083db + a34b1ed commit f915436
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit f915436

Please sign in to comment.