We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d1362 commit eb9e60aCopy full SHA for eb9e60a
1 file changed
rootfs/docker-entrypoint-initdb.d/001_setup_envdir.sh
@@ -16,7 +16,13 @@ if [ "$DATABASE_STORAGE" == "s3" ]; then
16
else
17
# these only need to be set if we're not accessing S3 (boto will figure this out)
18
echo "http://$DEIS_MINIO_SERVICE_HOST:$DEIS_MINIO_SERVICE_PORT" > WALE_S3_ENDPOINT
19
- echo "http://$DEIS_MINIO_SERVICE_HOST:$DEIS_MINIO_SERVICE_PORT" > S3_URL
+ if [ "$DEIS_MINIO_SERVICE_PORT" == "80" ]; then
20
+ # If you add port 80 to the end of the endpoint_url, boto3 freaks out.
21
+ # God I hate boto3 some days.
22
+ echo "http://$DEIS_MINIO_SERVICE_HOST" > S3_URL
23
+ else
24
+ echo "http://$DEIS_MINIO_SERVICE_HOST:$DEIS_MINIO_SERVICE_PORT" > S3_URL
25
+ fi
26
fi
27
28
echo $AWS_ACCESS_KEY_ID > AWS_ACCESS_KEY_ID
0 commit comments