Skip to content

Commit e41fd1b

Browse files
committed
s3: wire up GCP-brand S3
1 parent 390efcc commit e41fd1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appstore/s3.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
aws_access_key_id=config['AWS_ACCESS_KEY'],
1717
aws_secret_access_key=config['AWS_SECRET_KEY'],
1818
)
19-
# XXX: for GCP later:
20-
# s3_endpoint = creds.get('S3Endpoint')
19+
s3_endpoint = config['S3_ENDPOINT']
2120
except:
2221
pass
2322

appstore/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
'ALGOLIA_DISABLE': os.environ.get('ALGOLIA_DISABLE', False),
2525
'AWS_ACCESS_KEY': os.environ.get('AWS_ACCESS_KEY', None),
2626
'AWS_SECRET_KEY': os.environ.get('AWS_SECRET_KEY', None),
27+
'S3_ENDPOINT': os.environ.get('S3_ENDPOINT', None),
2728
}

0 commit comments

Comments
 (0)