2019-01-07 10:55:02 +00:00
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
2021-09-09 06:00:50 +00:00
|
|
|
|
# 加密密钥 生产环境中请修改为随机字符串,请勿外泄, 可使用命令生成
|
2019-01-10 03:50:08 +00:00
|
|
|
|
# $ cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 49;echo
|
2022-06-23 07:00:49 +00:00
|
|
|
|
SECRET_KEY:
|
2019-01-07 10:55:02 +00:00
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: keep the bootstrap token used in production secret!
|
|
|
|
|
# 预共享Token coco和guacamole用来注册服务账号,不在使用原来的注册接受机制
|
2022-06-23 07:00:49 +00:00
|
|
|
|
BOOTSTRAP_TOKEN:
|
2019-01-07 10:55:02 +00:00
|
|
|
|
|
|
|
|
|
# Development env open this, when error occur display the full process track, Production disable it
|
|
|
|
|
# DEBUG 模式 开启DEBUG后遇到错误时可以看到更多日志
|
|
|
|
|
# DEBUG: true
|
|
|
|
|
|
|
|
|
|
# DEBUG, INFO, WARNING, ERROR, CRITICAL can set. See https://docs.djangoproject.com/en/1.10/topics/logging/
|
|
|
|
|
# 日志级别
|
|
|
|
|
# LOG_LEVEL: DEBUG
|
2022-06-23 07:00:49 +00:00
|
|
|
|
# LOG_DIR:
|
2019-01-07 10:55:02 +00:00
|
|
|
|
|
2022-06-23 07:00:49 +00:00
|
|
|
|
# Session expiration setting, Default 1 hour, Also set expired on on browser close
|
|
|
|
|
# 浏览器Session过期时间,默认 1 小时, 也可以设置浏览器关闭则过期
|
|
|
|
|
# SESSION_COOKIE_AGE: 3600
|
2019-02-15 03:14:37 +00:00
|
|
|
|
# SESSION_EXPIRE_AT_BROWSER_CLOSE: false
|
2019-01-07 10:55:02 +00:00
|
|
|
|
|
|
|
|
|
# Database setting, Support sqlite3, mysql, postgres ....
|
|
|
|
|
# 数据库设置
|
|
|
|
|
# See https://docs.djangoproject.com/en/1.10/ref/settings/#databases
|
|
|
|
|
|
|
|
|
|
# SQLite setting:
|
|
|
|
|
# 使用单文件sqlite数据库
|
|
|
|
|
# DB_ENGINE: sqlite3
|
2022-06-23 07:00:49 +00:00
|
|
|
|
# DB_NAME:
|
2019-01-07 10:55:02 +00:00
|
|
|
|
# MySQL or postgres setting like:
|
|
|
|
|
# 使用Mysql作为数据库
|
|
|
|
|
DB_ENGINE: mysql
|
|
|
|
|
DB_HOST: 127.0.0.1
|
|
|
|
|
DB_PORT: 3306
|
|
|
|
|
DB_USER: jumpserver
|
2022-06-23 07:00:49 +00:00
|
|
|
|
DB_PASSWORD:
|
2019-01-07 10:55:02 +00:00
|
|
|
|
DB_NAME: jumpserver
|
|
|
|
|
|
|
|
|
|
# When Django start it will bind this host and port
|
|
|
|
|
# ./manage.py runserver 127.0.0.1:8080
|
|
|
|
|
# 运行时绑定端口
|
|
|
|
|
HTTP_BIND_HOST: 0.0.0.0
|
|
|
|
|
HTTP_LISTEN_PORT: 8080
|
2019-09-27 02:36:06 +00:00
|
|
|
|
WS_LISTEN_PORT: 8070
|
2019-01-07 10:55:02 +00:00
|
|
|
|
|
|
|
|
|
# Use Redis as broker for celery and web socket
|
|
|
|
|
# Redis配置
|
|
|
|
|
REDIS_HOST: 127.0.0.1
|
|
|
|
|
REDIS_PORT: 6379
|
2022-06-23 07:00:49 +00:00
|
|
|
|
# REDIS_PASSWORD:
|
2019-01-07 10:55:02 +00:00
|
|
|
|
# REDIS_DB_CELERY: 3
|
|
|
|
|
# REDIS_DB_CACHE: 4
|
|
|
|
|
|
2019-10-10 10:04:31 +00:00
|
|
|
|
# LDAP/AD settings
|
2019-10-25 09:46:22 +00:00
|
|
|
|
# LDAP 搜索分页数量
|
|
|
|
|
# AUTH_LDAP_SEARCH_PAGED_SIZE: 1000
|
|
|
|
|
#
|
2019-10-10 10:04:31 +00:00
|
|
|
|
# 定时同步用户
|
2019-10-25 09:46:22 +00:00
|
|
|
|
# 启用 / 禁用
|
2019-09-27 10:30:13 +00:00
|
|
|
|
# AUTH_LDAP_SYNC_IS_PERIODIC: True
|
2019-10-25 09:46:22 +00:00
|
|
|
|
# 同步间隔 (单位: 时) (优先)
|
2019-09-27 10:30:13 +00:00
|
|
|
|
# AUTH_LDAP_SYNC_INTERVAL: 12
|
|
|
|
|
# Crontab 表达式
|
|
|
|
|
# AUTH_LDAP_SYNC_CRONTAB: * 6 * * *
|
2019-10-10 10:04:31 +00:00
|
|
|
|
#
|
|
|
|
|
# LDAP 用户登录时仅允许在用户列表中的用户执行 LDAP Server 认证
|
|
|
|
|
# AUTH_LDAP_USER_LOGIN_ONLY_IN_USERS: False
|
2019-10-25 09:09:22 +00:00
|
|
|
|
#
|
2019-10-25 09:46:22 +00:00
|
|
|
|
# LDAP 认证时如果日志中出现以下信息将参数设置为 0 (详情参见:https://www.python-ldap.org/en/latest/faq.html)
|
2019-10-25 09:09:22 +00:00
|
|
|
|
# In order to perform this operation a successful bind must be completed on the connection
|
|
|
|
|
# AUTH_LDAP_OPTIONS_OPT_REFERRALS: -1
|
2019-10-10 10:04:31 +00:00
|
|
|
|
|
2019-01-07 10:55:02 +00:00
|
|
|
|
# OTP settings
|
|
|
|
|
# OTP/MFA 配置
|
|
|
|
|
# OTP_VALID_WINDOW: 0
|
2019-01-10 03:50:08 +00:00
|
|
|
|
# OTP_ISSUER_NAME: Jumpserver
|
2019-08-08 05:03:03 +00:00
|
|
|
|
|
2019-12-04 09:53:15 +00:00
|
|
|
|
# 启用定时任务
|
2021-05-20 07:55:15 +00:00
|
|
|
|
# PERIOD_TASK_ENABLED: True
|
2019-12-04 09:53:15 +00:00
|
|
|
|
#
|
2021-07-19 10:04:52 +00:00
|
|
|
|
|
|
|
|
|
# 是否开启 Luna 水印
|
|
|
|
|
# SECURITY_WATERMARK_ENABLED: False
|
|
|
|
|
|
|
|
|
|
# 浏览器关闭页面后,会话过期
|
|
|
|
|
# SESSION_EXPIRE_AT_BROWSER_CLOSE_FORCE: False
|
|
|
|
|
|
|
|
|
|
# 每次api请求,session续期
|
|
|
|
|
# SESSION_SAVE_EVERY_REQUEST: True
|
|
|
|
|
|
|
|
|
|
# 仅允许用户从来源处登录
|
|
|
|
|
# ONLY_ALLOW_AUTH_FROM_SOURCE: False
|
|
|
|
|
|
|
|
|
|
# 仅允许已存在的用户登录,不允许第三方认证后,自动创建用户
|
|
|
|
|
# ONLY_ALLOW_EXIST_USER_AUTH: False
|
2022-09-21 06:26:05 +00:00
|
|
|
|
|
2023-08-17 04:12:58 +00:00
|
|
|
|
# 开启 Vault 账号存储
|
|
|
|
|
# VAULT_ENABLED: False
|
2023-08-15 10:24:01 +00:00
|
|
|
|
|