diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-05-19 16:40:24 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-05-19 16:45:27 -0700 |
commit | f19ab21b7d7dcddb3de0536c272cb22d581eb8d7 (patch) | |
tree | 73eb4ad19fd69aee158be85be60ea6cd9f53135e /config | |
parent | ff8e0c6b3dca3bf46b0abda284b486467a23dd07 (diff) |
Archive read entries automatically after 60 days
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/config/config.go b/config/config.go index aae1d98..bc4fc60 100644 --- a/config/config.go +++ b/config/config.go @@ -13,18 +13,18 @@ import ( ) const ( - defaultBaseURL = "http://localhost" - defaultDatabaseURL = "postgres://postgres:postgres@localhost/miniflux2?sslmode=disable" - defaultWorkerPoolSize = 5 - defaultPollingFrequency = 60 - defaultBatchSize = 10 - defaultDatabaseMaxConns = 20 - defaultListenAddr = "127.0.0.1:8080" - defaultCertFile = "" - defaultKeyFile = "" - defaultCertDomain = "" - defaultCertCache = "/tmp/cert_cache" - defaultSessionCleanupFrequency = 24 + defaultBaseURL = "http://localhost" + defaultDatabaseURL = "postgres://postgres:postgres@localhost/miniflux2?sslmode=disable" + defaultWorkerPoolSize = 5 + defaultPollingFrequency = 60 + defaultBatchSize = 10 + defaultDatabaseMaxConns = 20 + defaultListenAddr = "127.0.0.1:8080" + defaultCertFile = "" + defaultKeyFile = "" + defaultCertDomain = "" + defaultCertCache = "/tmp/cert_cache" + defaultCleanupFrequency = 24 ) // Config manages configuration parameters. @@ -137,9 +137,9 @@ func (c *Config) CertCache() string { return c.get("CERT_CACHE", defaultCertCache) } -// SessionCleanupFrequency returns the interval for session cleanup. -func (c *Config) SessionCleanupFrequency() int { - return c.getInt("SESSION_CLEANUP_FREQUENCY", defaultSessionCleanupFrequency) +// CleanupFrequency returns the interval for cleanup jobs. +func (c *Config) CleanupFrequency() int { + return c.getInt("CLEANUP_FREQUENCY", defaultCleanupFrequency) } // WorkerPoolSize returns the number of background worker. |