Add support in UI for custom S3 endpoints for backups (#1152)

* Support custom S3 endpoint for backups

* Log info about AWS S3 endpoint during start up
This commit is contained in:
Jakub Warczarek
2020-10-28 10:56:50 +01:00
committed by GitHub
parent d658b9672e
commit e10e0fec9e
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -104,6 +104,8 @@ USE_AWS_INSTANCE_PROFILE = (
getenv('USE_AWS_INSTANCE_PROFILE', 'false').lower() != 'false'
)
AWS_ENDPOINT = getenv('AWS_ENDPOINT')
tokens.configure()
tokens.manage('read-only')
tokens.start()
@@ -1055,6 +1057,7 @@ def main(port, secret_key, debug, clusters: list):
logger.info(f'Tokeninfo URL: {TOKENINFO_URL}')
logger.info(f'Use AWS instance_profile: {USE_AWS_INSTANCE_PROFILE}')
logger.info(f'WAL-E S3 endpoint: {WALE_S3_ENDPOINT}')
logger.info(f'AWS S3 endpoint: {AWS_ENDPOINT}')
if TARGET_NAMESPACE is None:
@on_exception(