From ced39692ebe7e63d145184d4ebf3e52045608215 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 14 Sep 2011 11:20:47 -0700 Subject: [PATCH] Increase gerrit session timeout to 24h. Set session cookies to SSL-only. Change-Id: Ie49b0fe90f4c8c9f1c603d21b21e67fbdda6196c --- modules/gerrit/templates/gerrit.config.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gerrit/templates/gerrit.config.erb b/modules/gerrit/templates/gerrit.config.erb index afcca23c21..a007a912fe 100644 --- a/modules/gerrit/templates/gerrit.config.erb +++ b/modules/gerrit/templates/gerrit.config.erb @@ -12,6 +12,7 @@ [auth] type = OPENID_SSO openIdSsoUrl = <%= openidssourl %> + cookieSecure = true [sendemail] smtpServer = localhost [container] @@ -23,6 +24,8 @@ listenUrl = proxy-https://*:8081/ [cache] directory = cache +[cache "web_sessions"] + maxAge = 1d [user] email = <%= email %> <% commentlinks.each do |commentlink| -%>