File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
rootfs/docker-entrypoint-initdb.d Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ if [[ "$DATABASE_STORAGE" == "s3" || "$DATABASE_STORAGE" == "minio" ]]; then
8
8
if [[ " $DATABASE_STORAGE " == " s3" ]]; then
9
9
AWS_REGION=$( cat /var/run/secrets/deis/objectstore/creds/region)
10
10
BUCKET_NAME=$( cat /var/run/secrets/deis/objectstore/creds/database-bucket)
11
+ # Convert $AWS_REGION into $WALE_S3_ENDPOINT to avoid "Connection reset by peer" from
12
+ # regions other than us-standard.
13
+ # See https://github.com/wal-e/wal-e/issues/167
14
+ # See https://github.com/boto/boto/issues/2207
15
+ if [[ " $AWS_REGION " == " us-east-1" ]]; then
16
+ echo " https+path://s3.amazonaws.com:443" > WALE_S3_ENDPOINT
17
+ else
18
+ echo " https+path://s3-${AWS_REGION} .amazonaws.com:443" > WALE_S3_ENDPOINT
19
+ fi
11
20
else
12
21
AWS_REGION=" us-east-1"
13
22
BUCKET_NAME=" dbwal"
You can’t perform that action at this time.
0 commit comments