X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/436f5c768dbc97135490b6477efd1ff0482a9dda..08793025fb951153ce374f8eb4f984ee21f6a2bc:/services/keep-web/main.go?ds=sidebyside diff --git a/services/keep-web/main.go b/services/keep-web/main.go index 5f4cb50904..f17522cc02 100644 --- a/services/keep-web/main.go +++ b/services/keep-web/main.go @@ -4,6 +4,7 @@ import ( "flag" "log" "os" + "time" "git.curoverse.com/arvados.git/sdk/go/arvados" "git.curoverse.com/arvados.git/sdk/go/config" @@ -24,6 +25,8 @@ type Config struct { AttachmentOnlyHost string TrustAllContent bool + Cache cache + // Hack to support old command line flag, which is a bool // meaning "get actual token from environment". deprecatedAllowAnonymous bool @@ -33,6 +36,13 @@ type Config struct { func DefaultConfig() *Config { return &Config{ Listen: ":80", + Cache: cache{ + TTL: arvados.Duration(5 * time.Minute), + MaxCollectionEntries: 1000, + MaxCollectionBytes: 100000000, + MaxPermissionEntries: 1000, + MaxUUIDEntries: 1000, + }, } }