mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (s3): cloudflare s3 default
This commit is contained in:
parent
9c52561e99
commit
3727981e75
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,9 @@ func (s S3Backend) Init(params map[string]string, app *App) (IBackend, error) {
|
|||
|
||||
if params["region"] == "" {
|
||||
params["region"] = "us-east-2"
|
||||
if strings.HasSuffix(params["endpoint"], ".cloudflarestorage.com") {
|
||||
params["region"] = "auto"
|
||||
}
|
||||
}
|
||||
creds := []credentials.Provider{}
|
||||
if params["access_key_id"] != "" || params["secret_access_key"] != "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue