mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-30 02:48:17 +08:00
commit
ab888de8a1
@ -185,9 +185,13 @@ public class NginxController extends BaseController {
|
||||
addNgxParam(sever, "listen " + port);
|
||||
addNgxParam(sever, "server_name " + domain);
|
||||
if (StrUtil.isNotEmpty(cert)) {
|
||||
addNgxParam(sever, "ssl on");
|
||||
addNgxParam(sever, "ssl_certificate " + cert);
|
||||
addNgxParam(sever, "ssl_certificate_key " + key);
|
||||
addNgxParam(sever, "ssl_prefer_server_ciphers on");
|
||||
addNgxParam(sever, "ssl_session_cache shared:SSL:1m");
|
||||
addNgxParam(sever, "ssl_session_timeout 5m");
|
||||
addNgxParam(sever, "ssl_ciphers HIGH:!aNULL:!MD5");
|
||||
if ("true".equals(convert)) {
|
||||
NgxBlock httpSever = new NgxBlock();
|
||||
httpSever.addValue("server");
|
||||
|
@ -269,9 +269,9 @@
|
||||
value = value / 1024;
|
||||
suffix = " GB";
|
||||
}
|
||||
value = value.toFixed(2);
|
||||
value = Math.round(value * 100) / 100;
|
||||
} else {
|
||||
value = value.toFixed(4);
|
||||
value = Math.round(value * 10000) / 10000;
|
||||
}
|
||||
return params.seriesName + '<br/>' + params.name + " : " + value + suffix + "(" + params.percent + "%)";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user