mirror of https://github.com/jumpserver/jumpserver
perf: can set xpack disable force
parent
a509afe24b
commit
b8c223d525
|
@ -25,6 +25,7 @@
|
|||
"PauseSession": "Pause Session",
|
||||
"ReadOnly": "Read-Only",
|
||||
"Remove": "Remove",
|
||||
"Confirm": "Confirm",
|
||||
"RemoveShareUser": "You have been removed from the shared session.",
|
||||
"RemoveShareUserConfirm": "Are you sure to remove the user from the shared session?",
|
||||
"ResumeSession": "Resume Session",
|
||||
|
@ -49,4 +50,4 @@
|
|||
"VerifyCode": "Verify Code",
|
||||
"WaitFileTransfer": "Wait file transfer to finish",
|
||||
"Writable": "Writable"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"CopyShareURLSuccess": "复制分享地址成功",
|
||||
"CreateLink": "创建分享链接",
|
||||
"CreateSuccess": "创建成功",
|
||||
"Confirm": "确认",
|
||||
"Download": "下载",
|
||||
"DownloadSuccess": "下载成功",
|
||||
"EndFileTransfer": "文件传输结束",
|
||||
|
@ -49,4 +50,4 @@
|
|||
"VerifyCode": "验证码",
|
||||
"WaitFileTransfer": "等待文件传输结束",
|
||||
"Writable": "读写"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,10 @@ current_year = datetime.datetime.now().year
|
|||
corporation = f'FIT2CLOUD 飞致云 © 2014-{current_year}'
|
||||
|
||||
XPACK_DIR = os.path.join(const.BASE_DIR, 'xpack')
|
||||
XPACK_ENABLED = os.path.isdir(XPACK_DIR)
|
||||
XPACK_DISABLED = os.environ.get('XPACK_ENABLED') in ['0', 'false', 'False', 'no', 'No']
|
||||
XPACK_ENABLED = False
|
||||
if not XPACK_DISABLED:
|
||||
XPACK_ENABLED = os.path.isdir(XPACK_DIR)
|
||||
XPACK_TEMPLATES_DIR = []
|
||||
XPACK_CONTEXT_PROCESSOR = []
|
||||
XPACK_LICENSE_IS_VALID = False
|
||||
|
|
Loading…
Reference in New Issue