mirror of https://github.com/jumpserver/jumpserver
perf: can set xpack disable force
parent
a509afe24b
commit
b8c223d525
|
@ -25,6 +25,7 @@
|
||||||
"PauseSession": "Pause Session",
|
"PauseSession": "Pause Session",
|
||||||
"ReadOnly": "Read-Only",
|
"ReadOnly": "Read-Only",
|
||||||
"Remove": "Remove",
|
"Remove": "Remove",
|
||||||
|
"Confirm": "Confirm",
|
||||||
"RemoveShareUser": "You have been removed from the shared session.",
|
"RemoveShareUser": "You have been removed from the shared session.",
|
||||||
"RemoveShareUserConfirm": "Are you sure to remove the user from the shared session?",
|
"RemoveShareUserConfirm": "Are you sure to remove the user from the shared session?",
|
||||||
"ResumeSession": "Resume Session",
|
"ResumeSession": "Resume Session",
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"CopyShareURLSuccess": "复制分享地址成功",
|
"CopyShareURLSuccess": "复制分享地址成功",
|
||||||
"CreateLink": "创建分享链接",
|
"CreateLink": "创建分享链接",
|
||||||
"CreateSuccess": "创建成功",
|
"CreateSuccess": "创建成功",
|
||||||
|
"Confirm": "确认",
|
||||||
"Download": "下载",
|
"Download": "下载",
|
||||||
"DownloadSuccess": "下载成功",
|
"DownloadSuccess": "下载成功",
|
||||||
"EndFileTransfer": "文件传输结束",
|
"EndFileTransfer": "文件传输结束",
|
||||||
|
|
|
@ -11,6 +11,9 @@ current_year = datetime.datetime.now().year
|
||||||
corporation = f'FIT2CLOUD 飞致云 © 2014-{current_year}'
|
corporation = f'FIT2CLOUD 飞致云 © 2014-{current_year}'
|
||||||
|
|
||||||
XPACK_DIR = os.path.join(const.BASE_DIR, 'xpack')
|
XPACK_DIR = os.path.join(const.BASE_DIR, 'xpack')
|
||||||
|
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_ENABLED = os.path.isdir(XPACK_DIR)
|
||||||
XPACK_TEMPLATES_DIR = []
|
XPACK_TEMPLATES_DIR = []
|
||||||
XPACK_CONTEXT_PROCESSOR = []
|
XPACK_CONTEXT_PROCESSOR = []
|
||||||
|
|
Loading…
Reference in New Issue