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
e31b901e
Commit
e31b901e
authored
Jan 03, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.quantgroup.cn/QA/qa-deploy-utils
parents
4f8c5215
d05e8e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
make_frp_ini.sh
qa_shell_script/ngrok/make_frp_ini.sh
+5
-7
No files found.
qa_shell_script/ngrok/make_frp_ini.sh
View file @
e31b901e
...
@@ -61,7 +61,7 @@ addFrpcLoc local_ http 8000 q-gp.com / $filename
...
@@ -61,7 +61,7 @@ addFrpcLoc local_ http 8000 q-gp.com / $filename
addFrpcSub store http 127.0.0 1 8001 store
$filename
addFrpcSub store http 127.0.0 1 8001 store
$filename
addFrpcSub h5 http 192.168.4
88
7051 h5
$filename
addFrpcSub h5 http 192.168.4
25
7051 h5
$filename
addFrpcSub mock http 192.168.4 27 80 mock
$filename
addFrpcSub mock http 192.168.4 27 80 mock
$filename
addFrpcSub atm http 192.168.4 18 3000 atm
$filename
addFrpcSub atm http 192.168.4 18 3000 atm
$filename
addFrpcSub auth-center http 192.168.4 193 8099 auth-center-38
$filename
addFrpcSub auth-center http 192.168.4 193 8099 auth-center-38
$filename
...
@@ -70,8 +70,7 @@ addFrpcSub bp http 192.168.4 27 10084 bp $filename
...
@@ -70,8 +70,7 @@ addFrpcSub bp http 192.168.4 27 10084 bp $filename
addFrpcSub qahelp http 192.168.4 27 8000 qahelp
$filename
addFrpcSub qahelp http 192.168.4 27 8000 qahelp
$filename
addFrpcSub h5sp http 192.168.4 25 7057 h5sp-25
$filename
addFrpcSub h5sp http 192.168.4 25 7057 h5sp-25
$filename
addFrpcSub qg1 http 192.168.4 21 9019 qg1-21
$filename
addFrpcSub qg1 http 192.168.4 21 9019 qg1-21
$filename
addFrpcSub uanguang http 192.168.4 126 80 uanguang
$filename
addFrpcSub uanguang http 192.168.4 124 80 uanguang
$filename
function
createNginxSSLConf
()
function
createNginxSSLConf
()
...
@@ -160,9 +159,8 @@ do
...
@@ -160,9 +159,8 @@ do
for
projectAndPort
in
${
projectAndPorts
[@]
}
for
projectAndPort
in
${
projectAndPorts
[@]
}
do
do
var
=(
${
projectAndPort
//|/
}
)
var
=(
${
projectAndPort
//|/
}
)
ip_last_repeat
=
${
ip_last
//./-
}
addFrpcSub
$var
[
0] http
$ipfirst
$iplast
${
var
[1]
}
${
var
[0]
}
-
${
ip_last_repeat
}
$filename
addFrpcSub
${
var
[0]
}
http
$ipfirst
$iplast
${
var
[1]
}
${
var
[0]
}
-
${
ip_last
}
$filename
createNginxSSLConf
${
var
[0]
}
-
${
ip_last
}
$ipfirst
.
$iplast
${
var
[1]
}
$nginxname
/
${
var
[0]
}
-
${
ip_last
}
.conf
createNginxSSLConf
${
var
[0]
}
-
${
ip_last
}
$ipfirst
.
$iplast
${
var
[1]
}
$nginxname
/
${
var
[0]
}
-
${
ip_last
}
.conf
done
done
done
done
...
@@ -177,7 +175,7 @@ do
...
@@ -177,7 +175,7 @@ do
addFrpcSub
${
var
[0]
}
-
${
var
[2]
}
http 127.0.0 1 8000
${
var
[2]
}
-
${
namespace
[0]
}
$filename
addFrpcSub
${
var
[0]
}
-
${
var
[2]
}
http 127.0.0 1 8000
${
var
[2]
}
-
${
namespace
[0]
}
$filename
createNginxHttpAndSSLConf
${
var
[2]
}
-
${
namespace
[0]
}
${
namespace
[1]
}
${
var
[1]
}
$nginxname
/
${
var
[0]
}
-
${
namespace
[0]
}
.conf
createNginxHttpAndSSLConf
${
var
[2]
}
-
${
namespace
[0]
}
${
namespace
[1]
}
${
var
[1]
}
$nginxname
/
${
var
[0]
}
-
${
namespace
[0]
}
.conf
done
done
basePorts
=
"redis|80 db|3306 rabbitmq|80"
basePorts
=
"redis|80 db|3306 rabbitmq|80
pinja-api|80 pinja-cr|80 pinja-cr-api|80
"
for
basePort
in
${
basePorts
[@]
}
for
basePort
in
${
basePorts
[@]
}
do
do
var
=(
${
basePort
//|/
}
)
var
=(
${
basePort
//|/
}
)
...
...
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