perf: can set xpack disable force

pull/13645/head
ibuler 2024-07-09 10:49:41 +08:00 committed by 老广
parent a509afe24b
commit b8c223d525
3 changed files with 8 additions and 3 deletions

View File

@ -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"
}
}

View File

@ -6,6 +6,7 @@
"CopyShareURLSuccess": "复制分享地址成功",
"CreateLink": "创建分享链接",
"CreateSuccess": "创建成功",
"Confirm": "确认",
"Download": "下载",
"DownloadSuccess": "下载成功",
"EndFileTransfer": "文件传输结束",
@ -49,4 +50,4 @@
"VerifyCode": "验证码",
"WaitFileTransfer": "等待文件传输结束",
"Writable": "读写"
}
}

View File

@ -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