Commit 7af0aa0b authored by tywldx's avatar tywldx

fix

parent a11e8966
......@@ -81,7 +81,8 @@ var hosts = {
"pinjamancepat-collection":"pinja-collection-api.xyqb.com",
"translate":"translate.xyqb.com",
"union-ui":"union-ui.xyqb.com",
"pinjamancepat-config" :"pinja-config.xyqb.com"
"pinjamancepat-config" :"pinja-config.xyqb.com",
"clotho":"clotho.xyqb.com"
}
var pClass = function() {};
......
......@@ -112,7 +112,7 @@ admin.get('/get_hosts', function (req, res) {
// 增加一个新的nginx映射
admin.post('/add_new_proxy', function (req, res) {
let request = req.body;
let new_namespace = request["namespace"],new_ip = request["ip"],new_ports=request["proxy_ports"];
let new_namespace = request["namespace"],new_ip = request["ip"],new_ports=request["ports"];
var str = String(execSync(`cat ../ngrok/docker_env_name.sh`)).replace(/\n/,"");
let data = parseStr2Json(str);
data[new_namespace] = {
......
......@@ -120,7 +120,7 @@ do
sub_doman="${var[2]}-${namespace[0]}"
target_ip="${namespace[1]}"
http_port="${namespace[2]}"
https_port="${namespace[3]}"
https_port="${namespace[2]}"
file_name="$nginxname/${namespace[0]}.conf"
# createNginxHttpAndSSLConf 服务名称 二级域名 目标IP HTTP端口 HTTPS端口 目标文件
if [[ ${var[0]} != "xjd-ui" ]] && [[ ${var[0]} != "new-paycenter-ui" ]];then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment