fix default cdn auth duration

Signed-off-by: Shawnpku <chen8132@gmail.com>
This commit is contained in:
Shawnpku
2019-03-04 14:53:48 +08:00
parent bbc9885aa2
commit 6e10631d9c
5 changed files with 1 additions and 252 deletions

View File

@@ -72,7 +72,7 @@ func newAliCDNStorageMiddleware(storageDriver storagedriver.StorageDriver, optio
urlSigner := auth.NewURLSigner(authType, privateKey)
// parse duration
duration := 60 * time.Minute
duration := 20 * time.Minute
d, ok := options["duration"]
if ok {
switch d := d.(type) {