Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
818ef1b9
Commit
818ef1b9
authored
Dec 07, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6af25ca2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
make_frp_ini.sh
qa_shell_script/ngrok/make_frp_ini.sh
+9
-3
No files found.
qa_shell_script/ngrok/make_frp_ini.sh
View file @
818ef1b9
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment