mirror of
https://github.com/distribution/distribution.git
synced 2025-09-15 22:59:24 +00:00
Merge pull request #3880 from wzshiming/proxy-cache-configurable
This commit is contained in:
@@ -669,6 +669,11 @@ type Proxy struct {
|
||||
|
||||
// Password of the hub user
|
||||
Password string `yaml:"password"`
|
||||
|
||||
// TTL is the expiry time of the content and will be cleaned up when it expires
|
||||
// if not set, defaults to 7 * 24 hours
|
||||
// If set to zero, will never expire cache
|
||||
TTL *time.Duration `yaml:"ttl,omitempty"`
|
||||
}
|
||||
|
||||
// Parse parses an input configuration yaml document into a Configuration struct
|
||||
|
Reference in New Issue
Block a user