allow using environment vars for configuration

fixes #151
This commit is contained in:
Will Norris 2019-06-09 21:02:21 +00:00
parent dfcfda52de
commit 50e0d1104d
7 changed files with 89 additions and 0 deletions

View file

@ -33,6 +33,7 @@ import (
"github.com/garyburd/redigo/redis"
"github.com/gregjones/httpcache/diskcache"
rediscache "github.com/gregjones/httpcache/redis"
"github.com/jamiealquiza/envy"
"github.com/peterbourgon/diskv"
"willnorris.com/go/imageproxy"
"willnorris.com/go/imageproxy/internal/gcscache"
@ -60,6 +61,7 @@ func init() {
}
func main() {
envy.Parse("IMAGEPROXY")
flag.Parse()
p := imageproxy.NewProxy(nil, cache.Cache)