mirror of https://github.com/jumpserver/jumpserver
[Update] 修改config
parent
d48f8dceb5
commit
f6056426dc
|
@ -17,14 +17,6 @@ class Config:
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = os.environ.get('SECRET_KEY') or '2vym+ky!997d5kkcc64mnz06y1mmui3lut#(^wd=%s_qj$1%x'
|
SECRET_KEY = os.environ.get('SECRET_KEY') or '2vym+ky!997d5kkcc64mnz06y1mmui3lut#(^wd=%s_qj$1%x'
|
||||||
|
|
||||||
# How many line display every page if using django pager, default 25
|
|
||||||
DISPLAY_PER_PAGE = 25
|
|
||||||
|
|
||||||
# It's used to identify your site, When we send a create mail to user, we only know login url is /login/
|
|
||||||
# But we should know the absolute url like: http://jms.jumpserver.org/login/, so SITE_URL is
|
|
||||||
# HTTP_PROTOCOL://HOST[:PORT]
|
|
||||||
SITE_URL = 'http://localhost'
|
|
||||||
|
|
||||||
# Django security setting, if your disable debug model, you should setting that
|
# Django security setting, if your disable debug model, you should setting that
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
@ -65,40 +57,6 @@ class Config:
|
||||||
'port': REDIS_PORT,
|
'port': REDIS_PORT,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Api token expiration when create, Jumpserver refresh time when request arrive
|
|
||||||
TOKEN_EXPIRATION = 3600
|
|
||||||
|
|
||||||
# Session and csrf domain settings
|
|
||||||
SESSION_COOKIE_AGE = 3600*24
|
|
||||||
|
|
||||||
# Email SMTP setting, we only support smtp send mail
|
|
||||||
EMAIL_HOST = 'smtp.163.com'
|
|
||||||
EMAIL_PORT = 25
|
|
||||||
EMAIL_HOST_USER = ''
|
|
||||||
EMAIL_HOST_PASSWORD = '' # Caution: Some SMTP server using `Authorization Code` except password
|
|
||||||
EMAIL_USE_SSL = True if EMAIL_PORT == 465 else False
|
|
||||||
EMAIL_USE_TLS = True if EMAIL_PORT == 587 else False
|
|
||||||
EMAIL_SUBJECT_PREFIX = '[Jumpserver] '
|
|
||||||
|
|
||||||
CAPTCHA_TEST_MODE = False
|
|
||||||
|
|
||||||
# You can set jumpserver usage url here, that when user submit wizard redirect to
|
|
||||||
USER_GUIDE_URL = ''
|
|
||||||
|
|
||||||
# LDAP Auth settings
|
|
||||||
AUTH_LDAP = False
|
|
||||||
AUTH_LDAP_SERVER_URI = 'ldap://localhost:389'
|
|
||||||
AUTH_LDAP_BIND_DN = 'cn=admin,dc=jumpserver,dc=org'
|
|
||||||
AUTH_LDAP_BIND_PASSWORD = ''
|
|
||||||
AUTH_LDAP_SEARCH_OU = 'ou=tech,dc=jumpserver,dc=org'
|
|
||||||
AUTH_LDAP_SEARCH_FILTER = '(cn=%(user)s)'
|
|
||||||
AUTH_LDAP_USER_ATTR_MAP = {
|
|
||||||
"username": "cn",
|
|
||||||
"name": "sn",
|
|
||||||
"email": "mail"
|
|
||||||
}
|
|
||||||
AUTH_LDAP_START_TLS = False
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue