Merge pull request #3880 from wzshiming/proxy-cache-configurable
This commit is contained in:
commit
69023c7f85
8 changed files with 131 additions and 59 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue