mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update config_api.py
This commit is contained in:
@@ -465,6 +465,11 @@ class config_api:
|
||||
if not os.path.exists(bind_domain):
|
||||
return mw.returnJson(False, '先要绑定域名!')
|
||||
|
||||
choose_file = self.__file['ssl']
|
||||
choose = mw.readFile(choose_file)
|
||||
if choose == 'local':
|
||||
return mw.returnJson(False, '本地SSL无法使用!')
|
||||
|
||||
keyPath = 'ssl/nginx/private.pem'
|
||||
if not os.path.exists(keyPath):
|
||||
return mw.returnJson(False, '未申请SSL证书!')
|
||||
|
||||
Reference in New Issue
Block a user