Only use S3 API when API keys are registered
This commit is contained in:
parent
924f764e3f
commit
a0b69fc953
@ -15,6 +15,10 @@ import (
|
||||
var spaces *minio.Client
|
||||
|
||||
func init() {
|
||||
if arn.APIKeys.S3.ID == "" || arn.APIKeys.S3.Secret == "" {
|
||||
return
|
||||
}
|
||||
|
||||
go func() {
|
||||
var err error
|
||||
endpoint := "sfo2.digitaloceanspaces.com"
|
||||
|
Loading…
Reference in New Issue
Block a user