diff --git a/apps/jumpserver/conf.py b/apps/jumpserver/conf.py index 757af26fe..0deef705e 100644 --- a/apps/jumpserver/conf.py +++ b/apps/jumpserver/conf.py @@ -347,6 +347,7 @@ defaults = { 'RADIUS_SECRET': '', 'HTTP_BIND_HOST': '0.0.0.0', 'HTTP_LISTEN_PORT': 8080, + 'LOGIN_LOG_KEEP_DAYS': 90, } diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index 22e660bb1..60aa609f0 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -527,6 +527,7 @@ TERMINAL_ASSET_LIST_PAGE_SIZE = CONFIG.TERMINAL_ASSET_LIST_PAGE_SIZE TERMINAL_SESSION_KEEP_DURATION = CONFIG.TERMINAL_SESSION_KEEP_DURATION TERMINAL_HOST_KEY = CONFIG.TERMINAL_HOST_KEY TERMINAL_HEADER_TITLE = CONFIG.TERMINAL_HEADER_TITLE +TERMINAL_TELNET_REGEX = CONFIG.TERMINAL_TELNET_REGEX # Django bootstrap3 setting, more see http://django-bootstrap3.readthedocs.io/en/latest/settings.html BOOTSTRAP3 = { @@ -556,4 +557,4 @@ SWAGGER_SETTINGS = { # Default email suffix EMAIL_SUFFIX = CONFIG.EMAIL_SUFFIX -TERMINAL_TELNET_REGEX = CONFIG.TERMINAL_TELNET_REGEX +LOGIN_LOG_KEEP_DAYS = CONFIG.LOGIN_LOG_KEEP_DAYS diff --git a/apps/ops/templates/ops/task_list.html b/apps/ops/templates/ops/task_list.html index 1b18f206c..0426e059d 100644 --- a/apps/ops/templates/ops/task_list.html +++ b/apps/ops/templates/ops/task_list.html @@ -9,14 +9,6 @@ {% block table_search %}