Mercurial > gemma
changeset 3162:659549608644
Config: Fixed type of session timeout (its a duration now ... as intended).
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 06 May 2019 13:21:53 +0200 |
parents | 6a44a89ffb51 |
children | d9903cb34842 |
files | pkg/config/config.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/config/config.go Mon May 06 13:19:59 2019 +0200 +++ b/pkg/config/config.go Mon May 06 13:21:53 2019 +0200 @@ -248,7 +248,7 @@ strP("db-ssl", "S", "prefer", "SSL mode of the database") strP("sessions", "s", "", "path to the sessions file") - str("session-timeout", "3h", "duration until sessions expire") + d("session-timeout", 3*time.Hour, "duration until sessions expire") strP("web", "w", "./web", "path to the web files") strP("host", "o", "localhost", "host of the web app")