Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
ee479059
Commit
ee479059
authored
Mar 27, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改超时时间
parent
a31775dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
settings.py
apps/jumpserver/settings.py
+3
-3
No files found.
apps/jumpserver/settings.py
View file @
ee479059
...
@@ -16,7 +16,7 @@ import sys
...
@@ -16,7 +16,7 @@ import sys
import
ldap
import
ldap
from
django.urls
import
reverse_lazy
from
django.urls
import
reverse_lazy
from
.
const
import
VERSION
from
.
import
const
from
.conf
import
load_user_config
from
.conf
import
load_user_config
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
...
@@ -29,7 +29,7 @@ LOG_DIR = os.path.join(PROJECT_DIR, 'logs')
...
@@ -29,7 +29,7 @@ LOG_DIR = os.path.join(PROJECT_DIR, 'logs')
JUMPSERVER_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'jumpserver.log'
)
JUMPSERVER_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'jumpserver.log'
)
ANSIBLE_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'ansible.log'
)
ANSIBLE_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'ansible.log'
)
GUNICORN_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'gunicorn.log'
)
GUNICORN_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'gunicorn.log'
)
VERSION
=
VERSION
VERSION
=
const
.
VERSION
if
not
os
.
path
.
isdir
(
LOG_DIR
):
if
not
os
.
path
.
isdir
(
LOG_DIR
):
os
.
makedirs
(
LOG_DIR
)
os
.
makedirs
(
LOG_DIR
)
...
@@ -412,7 +412,7 @@ AUTH_LDAP_USER_ATTR_MAP = {"username": "cn", "name": "sn", "email": "mail"}
...
@@ -412,7 +412,7 @@ AUTH_LDAP_USER_ATTR_MAP = {"username": "cn", "name": "sn", "email": "mail"}
# AUTH_LDAP_GROUP_SEARCH_OU, ldap.SCOPE_SUBTREE, AUTH_LDAP_GROUP_SEARCH_FILTER
# AUTH_LDAP_GROUP_SEARCH_OU, ldap.SCOPE_SUBTREE, AUTH_LDAP_GROUP_SEARCH_FILTER
# )
# )
AUTH_LDAP_CONNECTION_OPTIONS
=
{
AUTH_LDAP_CONNECTION_OPTIONS
=
{
ldap
.
OPT_TIMEOUT
:
5
ldap
.
OPT_TIMEOUT
:
30
}
}
AUTH_LDAP_GROUP_CACHE_TIMEOUT
=
1
AUTH_LDAP_GROUP_CACHE_TIMEOUT
=
1
AUTH_LDAP_ALWAYS_UPDATE_USER
=
True
AUTH_LDAP_ALWAYS_UPDATE_USER
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment