Configure

Access policy

Password rules, session length, login lockout, token lifetimes and invites.

These settings live in Settings → System → Access and apply without a restart. Setting a variable locks the value and shows it as read-only in Studio. Durations use Go syntax, such as 30m or 8h.

Passwords

VariableDefaultWhat it does
PASSWORD_MIN_LENGTH12Shortest allowed password, 8 to 72 bytes.
PASSWORD_REQUIRE_CLASSESfalsetrue requires an upper-case letter, a lower-case letter and a digit.

Sessions

VariableDefaultWhat it does
SESSION_LIFETIME8hHow long a sign-in lasts, 15m to 720h. Applies to new sessions.
SESSION_IDLE_TIMEOUT0s (off)Signs out a session after this much inactivity, 5m to 720h, and no longer than SESSION_LIFETIME.

Login lockout

VariableDefaultWhat it does
LOGIN_MAX_ATTEMPTS5Failed logins allowed per account and client in one window, 1 to 100.
LOGIN_LOCKOUT1mLength of that window, 10s to 24h. The count resets after it.

Tokens

VariableDefaultWhat it does
TOKEN_DEFAULT_LIFETIME2160h (90 days)Lifetime when a token request does not set expires_in_days.
TOKEN_MAX_LIFETIME8760h (1 year)Longest any personal token may live.

Invites

VariableDefaultWhat it does
OWNER_INVITES_ENABLEDtruefalse stops the owner from creating accounts for other people.

Next steps

Buy me a coffee