Commit e8204a29 authored by tywldx's avatar tywldx

f

parent fc7b933e
......@@ -6,10 +6,14 @@ frp_file_path="/home/quant_group/frp_0.12.0_linux_amd64"
filename="$frp_file_path/frpc_custom_new_1.ini"
nginxname="/usr/local/openresty/nginx/conf/conf.d"
pwd_path_0="/home/qa-deploy-utils"
dockernamespace=`cat $pwd_path/ngrok/docker_env_name.sh`
ips=`cat $config_server/get_env_ip.sh`
rm -rf $filename
rm -rf $nginxname/*
function addFrpcHead()
{
echo "[common]" >> $1
......@@ -111,7 +115,6 @@ function createNginxHttpAndSSLConf()
https_port=$4
file_name=$5
rm -rf $file_name
touch $file_name
echo "server {" >> $file_name
......@@ -173,6 +176,7 @@ do
do
var=(${projectAndPort//|/ })
namespace=(${host_name//|/ })
echo "$namespace"
if [[ ${var[0]} != "xyqb-ui" ]] && [[ ${var[0]} != "paycenter-ui" ]];then
addFrpcSub ${var[0]}-${var[2]} http 127.0.0 1 8000 ${var[2]}-${namespace[0]} $filename
createNginxHttpAndSSLConf ${var[2]}-${namespace[0]} ${namespace[1]} ${namespace[2]} ${namespace[3]} $nginxname/${var[0]}-${namespace[0]}.conf
......
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