Added support to specifiy custom endpoint
Signed-off-by: Keerthan Reddy Mala <keerthan.mala@gmail.com>
This commit is contained in:
parent
46b2c3fadf
commit
2be1b4ef4f
4 changed files with 62 additions and 23 deletions
|
@ -30,6 +30,7 @@ func init() {
|
|||
secure := os.Getenv("S3_SECURE")
|
||||
region := os.Getenv("AWS_REGION")
|
||||
root, err := ioutil.TempDir("", "driver-")
|
||||
regionEndpoint := os.Getenv("REGION_ENDPOINT")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@ -57,6 +58,7 @@ func init() {
|
|||
secretKey,
|
||||
bucket,
|
||||
region,
|
||||
regionEndpoint,
|
||||
encryptBool,
|
||||
secureBool,
|
||||
minChunkSize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue