From 18f55d156995371bfb06ca8cd91da5a922d2a937 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 16 Dec 2017 18:48:17 -0800 Subject: Add scheduler to clean old sessions --- config/config.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'config') diff --git a/config/config.go b/config/config.go index 493e4ea..b1169e7 100644 --- a/config/config.go +++ b/config/config.go @@ -11,17 +11,18 @@ import ( // Default config parameters values 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" + 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 ) // Config manages configuration parameters. -- cgit v1.2.3