storage/s3: add custom endpoint url support (#1467)

This commit is contained in:
Aleksandr Razumov
2019-12-06 00:04:03 +03:00
committed by Aaron Schlesinger
parent 22a9dfe763
commit 5b194688a0
4 changed files with 18 additions and 1 deletions
+7 -1
View File
@@ -361,7 +361,6 @@ SingleFlightType = "memory"
Insecure = false
[Storage.S3]
### The authentication model is as below for S3 in the following order
### If AWS_CREDENTIALS_ENDPOINT is specified and it returns valid results, then it is used
### If config variables are specified and they are valid, then they return valid results, then it is used
@@ -415,6 +414,13 @@ SingleFlightType = "memory"
# Ref: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html
AwsContainerCredentialsRelativeURI = ""
# An optional endpoint URL (hostname only or fully qualified URI)
# that overrides the default generated endpoint for S3 storage client.
#
# You must still provide a `Region` value when specifying an endpoint.
# Env override: AWS_ENDPOINT
Endpoint = ""
[Storage.AzureBlob]
# Storage Account name for Azure Blob
# Env override: ATHENS_AZURE_ACCOUNT_NAME