Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Authentication

[auth] sets session lifetimes, sign-in lockouts and the password policy. Every key is optional.

[auth]
session_idle_timeout_secs = 7200      # 2h
session_absolute_timeout_secs = 43200 # 12h
remember_duration_secs = 1209600      # 14d
max_failures = 5
max_failures_per_address = 20
failure_window_secs = 900
access_log_retention_days = 365

[auth.password_policy]
min_length = 8

Set the keys

KeyDescription
session_idle_timeout_secsQuiet time before a session ends, from the last request. Default 7200.
session_absolute_timeout_secsCeiling from login, never extended. Default 43200. The earlier name session_ttl_secs is still read.
remember_duration_secsHow long an unused “stay signed in” credential lasts, from its last use. Default 1209600.
max_failuresFailed sign-ins from one address for one username before that address is locked out of it. Default 5.
max_failures_per_addressFailed sign-ins from one address, any username, before the address is locked out. Default 20.
failure_window_secsWindow the failures are counted over. Default 900.
access_log_retention_daysDays of the access log the hourly purge keeps. Default 365; 0 keeps every row.
password_policy.min_lengthThe shortest password accepted, wherever one is set. Default 8.

Clear a lockout

lat admin unlock editor