From de79e36251dc86af3b8304724bcc09726302cd37 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 4 Mar 2019 10:17:35 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/conf.py | 1 + apps/jumpserver/settings.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 43bc3cc1a..8375b9769 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -526,6 +526,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 = { @@ -555,4 +556,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