mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
@@ -108,7 +108,7 @@ docker run -itd --name mw-server --privileged=true -p 7200:7200 -p 80:80 -p 443:
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### 版本更新 0.18.5
|
### 版本更新 0.18.6
|
||||||
|
|
||||||
- 常规优化。
|
- 常规优化。
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ Install_lib()
|
|||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
if [ ! -f ${serverPath}/lib/freetype_old ];then
|
if [ ! -d ${serverPath}/lib/freetype_old ];then
|
||||||
echo "freetype_old not install , check!!"
|
echo "freetype_old not install , check!!"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|||||||
+10
-4
@@ -1720,10 +1720,16 @@ def getCertName(certPath):
|
|||||||
result['issuer'] = attr.value
|
result['issuer'] = attr.value
|
||||||
break
|
break
|
||||||
|
|
||||||
# 取到期时间
|
# 取到期时间(兼容新旧版本)
|
||||||
result['notAfter'] = strfDate(cert.not_valid_after.strftime('%Y%m%d%H%M%S'))
|
if hasattr(cert, 'not_valid_after_utc'):
|
||||||
# 取申请时间
|
result['notAfter'] = strfDate(cert.not_valid_after_utc.strftime('%Y%m%d%H%M%S'))
|
||||||
result['notBefore'] = strfDate(cert.not_valid_before.strftime('%Y%m%d%H%M%S'))
|
else:
|
||||||
|
result['notAfter'] = strfDate(cert.not_valid_after.strftime('%Y%m%d%H%M%S'))
|
||||||
|
# 取申请时间(兼容新旧版本)
|
||||||
|
if hasattr(cert, 'not_valid_before_utc'):
|
||||||
|
result['notBefore'] = strfDate(cert.not_valid_before_utc.strftime('%Y%m%d%H%M%S'))
|
||||||
|
else:
|
||||||
|
result['notBefore'] = strfDate(cert.not_valid_before.strftime('%Y%m%d%H%M%S'))
|
||||||
|
|
||||||
# 取可选名称 (SAN)
|
# 取可选名称 (SAN)
|
||||||
result['dns'] = []
|
result['dns'] = []
|
||||||
|
|||||||
@@ -2197,7 +2197,9 @@ function renderDnsapiHtml(data){
|
|||||||
function renderDnsapi(){
|
function renderDnsapi(){
|
||||||
$('#dnsapi_set').css('display', 'none');
|
$('#dnsapi_set').css('display', 'none');
|
||||||
|
|
||||||
$.post('/site/get_dnsapi', {}, function(data){
|
$.post('/site/get_dnsapi', {}, function(rdata){
|
||||||
|
var data = rdata.data;
|
||||||
|
|
||||||
var dnsapi_option = '';
|
var dnsapi_option = '';
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
dnsapi_option+='<option value="'+data[i]['name']+'" index="'+i+'">'+data[i]['title']+'</option>';
|
dnsapi_option+='<option value="'+data[i]['name']+'" index="'+i+'">'+data[i]['title']+'</option>';
|
||||||
|
|||||||
+1
-1
@@ -2098,7 +2098,7 @@ location ^~ {from} {\n\
|
|||||||
for field in keys:
|
for field in keys:
|
||||||
t[field] = ''
|
t[field] = ''
|
||||||
dnsapi_option[i]['data'] = t
|
dnsapi_option[i]['data'] = t
|
||||||
return dnsapi_option
|
return mw.returnData(True, 'OK', dnsapi_option)
|
||||||
|
|
||||||
def setDnsapi(self, type, data):
|
def setDnsapi(self, type, data):
|
||||||
dnsapi_data = thisdb.getOptionByJson('dnsapi', default={})
|
dnsapi_data = thisdb.getOptionByJson('dnsapi', default={})
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
# 应用程序版本号组件
|
# 应用程序版本号组件
|
||||||
APP_RELEASE = 0
|
APP_RELEASE = 0
|
||||||
APP_REVISION = 18
|
APP_REVISION = 18
|
||||||
APP_SMALL_VERSION = 5
|
APP_SMALL_VERSION = 6
|
||||||
|
|
||||||
# 应用程序版本后缀,例如"beta1"、"dev"。通常为空字符串GA发布
|
# 应用程序版本后缀,例如"beta1"、"dev"。通常为空字符串GA发布
|
||||||
APP_SUFFIX = ''
|
APP_SUFFIX = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user