Commit 818ef1b9 authored by tywldx's avatar tywldx

fix

parent 6af25ca2
...@@ -5,7 +5,7 @@ config_server="$pwd_path/config_server" ...@@ -5,7 +5,7 @@ config_server="$pwd_path/config_server"
frp_file_path="/home/quant_group/frp_0.12.0_linux_amd64" frp_file_path="/home/quant_group/frp_0.12.0_linux_amd64"
filename="$frp_file_path/frpc_custom_new_1.ini" filename="$frp_file_path/frpc_custom_new_1.ini"
nginxname="/usr/local/openresty/nginx/conf/conf.d" nginxname="/usr/local/openresty/nginx/conf/conf.d"
pwd_path_0="/home/qa-deploy-utils"
dockernamespace=`cat $pwd_path/ngrok/docker_env_name.sh` dockernamespace=`cat $pwd_path/ngrok/docker_env_name.sh`
ips=`cat $config_server/get_env_ip.sh` ips=`cat $config_server/get_env_ip.sh`
...@@ -152,12 +152,18 @@ createNginxSSLConf store 192.168.4.27 9000 $nginxname/store.conf ...@@ -152,12 +152,18 @@ createNginxSSLConf store 192.168.4.27 9000 $nginxname/store.conf
for ip_last in ${ips[@]} for ip_last in ${ips[@]}
do do
IP_host=`sh $pwd_path_0/get-ip.sh $ip_last`
ip_arr=(${IP_host//./ })
ipfirst="${ip_arr[0]}.${ip_arr[1]}.${ip_arr[2]}"
iplast="${ip_arr[3]}"
projectAndPorts=`node $config_server/get_project_config.js -type multi -attr port -attr2 true` projectAndPorts=`node $config_server/get_project_config.js -type multi -attr port -attr2 true`
for projectAndPort in ${projectAndPorts[@]} for projectAndPort in ${projectAndPorts[@]}
do do
var=(${projectAndPort//|/ }) var=(${projectAndPort//|/ })
addFrpcSub ${var[0]} http 192.168.4 $ip_last ${var[1]} ${var[0]}-${ip_last} $filename
createNginxSSLConf ${var[0]}-${ip_last} 192.168.4.$ip_last ${var[1]} $nginxname/${var[0]}-${ip_last}.conf
addFrpcSub ${var[0]} http $ipfirst $iplast ${var[1]} ${var[0]}-${ip_last} $filename
createNginxSSLConf ${var[0]}-${ip_last} $ipfirst.$ip_last ${var[1]} $nginxname/${var[0]}-${ip_last}.conf
done done
done done
......
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