fix: harden login session lifetime
This commit is contained in:
@@ -29,6 +29,7 @@ type Config struct {
|
||||
ImagePreview bool
|
||||
FolderDownload string
|
||||
SessionTimeout int
|
||||
JWTSecret string
|
||||
HTMLTitle string
|
||||
HTMLNotice string
|
||||
UserFile string
|
||||
@@ -122,6 +123,8 @@ func Load(path string) (Config, error) {
|
||||
if n, e := strconv.Atoi(val); e == nil && n > 0 {
|
||||
c.SessionTimeout = n
|
||||
}
|
||||
case "jwt.secret":
|
||||
c.JWTSecret = val
|
||||
case "html.title":
|
||||
c.HTMLTitle = val
|
||||
case "html.notice":
|
||||
|
||||
Reference in New Issue
Block a user