1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-11-23 21:44:40 +02:00

add insecure option, update docs

This commit is contained in:
Frederik Ring
2021-08-22 19:26:34 +02:00
parent da9458724f
commit 188c14c00f
4 changed files with 36 additions and 16 deletions

View File

@@ -106,7 +106,7 @@ func (s *script) init() error {
os.Getenv("AWS_SECRET_ACCESS_KEY"),
"",
),
Secure: os.Getenv("AWS_ENDPOINT_PROTO") == "https",
Secure: os.Getenv("AWS_ENDPOINT_INSECURE") == "" && os.Getenv("AWS_ENDPOINT_PROTO") == "https",
})
if err != nil {
return fmt.Errorf("init: error setting up minio client: %w", err)