mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-28 14:26:24 +02:00
adding azure support
This commit is contained in:
parent
03d75816a0
commit
f1ef8af9ec
2 changed files with 10 additions and 4 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/PaulARoy/azurestoragecache"
|
||||
"github.com/diegomarangoni/gcscache"
|
||||
"github.com/gregjones/httpcache"
|
||||
"github.com/gregjones/httpcache/diskcache"
|
||||
|
|
@ -129,6 +130,8 @@ func parseCache() (imageproxy.Cache, error) {
|
|||
return s3cache.New(u.String()), nil
|
||||
case "gcs":
|
||||
return gcscache.New(u.String()), nil
|
||||
case "azure":
|
||||
return azurestoragecache.New("", "", u.Host)
|
||||
case "file":
|
||||
fallthrough
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue