Skip to content

Commit 51490d0

Browse files
authored
Added LOGIN_TIMEOUT option to configuration.py
Added LOGIN_TIMEOUT option to configuration.py. The option is already available in standard Netbox configuration.
1 parent e9a9d9b commit 51490d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configuration/configuration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def read_secret(secret_name):
150150
# are permitted to access most data in NetBox (excluding secrets) but not make any changes.
151151
LOGIN_REQUIRED = os.environ.get('LOGIN_REQUIRED', 'False').lower() == 'true'
152152

153+
# The length of time (in seconds) for which a user will remain logged into the web UI before being prompted to
154+
# re-authenticate. (Default: 1209600 [14 days])
155+
LOGIN_TIMEOUT = os.environ.get('LOGIN_TIMEOUT', None)
156+
153157
# Setting this to True will display a "maintenance mode" banner at the top of every page.
154158
MAINTENANCE_MODE = os.environ.get('MAINTENANCE_MODE', 'False').lower() == 'true'
155159

0 commit comments

Comments
 (0)