diff --git a/Dockerfile b/Dockerfile index 3742a47f5..0733aa161 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY ./requirements /tmp/requirements RUN yum -y install epel-release openldap-clients telnet && cd /tmp/requirements && \ yum -y install $(cat rpm_requirements.txt) -RUN cd /tmp/requirements && pip install -r requirements.txt +RUN cd /tmp/requirements && pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r requirements.txt || pip install -r requirements.txt COPY . /opt/jumpserver RUN echo > config.yml diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index 019bf5748..e5f555e65 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -218,10 +218,9 @@ LOGGING = { 'file': { 'encoding': 'utf8', 'level': 'DEBUG', - 'class': 'logging.handlers.TimedRotatingFileHandler', - 'when': "D", - 'interval': 1, - "backupCount": 7, + 'class': 'logging.handlers.RotatingFileHandler', + 'maxBytes': 1024*1024*100, + 'backupCount': 7, 'formatter': 'main', 'filename': JUMPSERVER_LOG_FILE, },