mirror of
https://github.com/willnorris/imageproxy.git
synced 2025-01-13 22:51:38 -05:00
remove long-deprecated cacheDir and cacheSize flags
This commit is contained in:
parent
5ee7e282cf
commit
5264eb6db0
1 changed files with 0 additions and 5 deletions
|
@ -41,8 +41,6 @@ var whitelist = flag.String("whitelist", "", "comma separated list of allowed re
|
||||||
var referrers = flag.String("referrers", "", "comma separated list of allowed referring hosts")
|
var referrers = flag.String("referrers", "", "comma separated list of allowed referring hosts")
|
||||||
var baseURL = flag.String("baseURL", "", "default base URL for relative remote URLs")
|
var baseURL = flag.String("baseURL", "", "default base URL for relative remote URLs")
|
||||||
var cache = flag.String("cache", "", "location to cache images (see https://github.com/willnorris/imageproxy#cache)")
|
var cache = flag.String("cache", "", "location to cache images (see https://github.com/willnorris/imageproxy#cache)")
|
||||||
var cacheDir = flag.String("cacheDir", "", "(Deprecated; use 'cache' instead) directory to use for file cache")
|
|
||||||
var cacheSize = flag.Uint64("cacheSize", 0, "Deprecated: this flag does nothing")
|
|
||||||
var signatureKey = flag.String("signatureKey", "", "HMAC key used in calculating request signatures")
|
var signatureKey = flag.String("signatureKey", "", "HMAC key used in calculating request signatures")
|
||||||
var scaleUp = flag.Bool("scaleUp", false, "allow images to scale beyond their original dimensions")
|
var scaleUp = flag.Bool("scaleUp", false, "allow images to scale beyond their original dimensions")
|
||||||
var timeout = flag.Duration("timeout", 0, "time limit for requests served by this proxy")
|
var timeout = flag.Duration("timeout", 0, "time limit for requests served by this proxy")
|
||||||
|
@ -98,9 +96,6 @@ func main() {
|
||||||
// parseCache parses the cache-related flags and returns the specified Cache implementation.
|
// parseCache parses the cache-related flags and returns the specified Cache implementation.
|
||||||
func parseCache() (imageproxy.Cache, error) {
|
func parseCache() (imageproxy.Cache, error) {
|
||||||
if *cache == "" {
|
if *cache == "" {
|
||||||
if *cacheDir != "" {
|
|
||||||
return diskCache(*cacheDir), nil
|
|
||||||
}
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue