Skip to content

Commit 4b0f158

Browse files
authored
Merge pull request #313 from jgcasd/jgcasd-patch-1
Add optional LOGIN_TIMEOUT to configuration.py
2 parents 688672d + 51490d0 commit 4b0f158

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)