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
e8204a29
Commit
e8204a29
authored
Jan 17, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
fc7b933e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
make_frp_ini.sh
qa_shell_script/ngrok/make_frp_ini.sh
+6
-2
No files found.
qa_shell_script/ngrok/make_frp_ini.sh
View file @
e8204a29
...
...
@@ -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
...
...
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