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
2cf64d3d
Commit
2cf64d3d
authored
Nov 16, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5f31c78e
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
91 deletions
+135
-91
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+89
-86
make_frp_ini.sh
qa_shell_script/ngrok/make_frp_ini.sh
+46
-5
No files found.
qa_shell_script/config_server/get_project_config.js
View file @
2cf64d3d
This diff is collapsed.
Click to expand it.
qa_shell_script/ngrok/make_frp_ini.sh
View file @
2cf64d3d
...
@@ -99,8 +99,47 @@ function createNginxSSLConf()
...
@@ -99,8 +99,47 @@ function createNginxSSLConf()
echo
" }"
>>
$file_name
echo
" }"
>>
$file_name
echo
"}"
>>
$file_name
echo
"}"
>>
$file_name
rm
-rf
}
}
function
createNginxHttpAndSSLConf
()
{
cus_domain
=
$1
cus_ip
=
$2
cus_port
=
$3
file_name
=
$4
rm
-rf
$file_name
touch
$file_name
echo
"server {"
>>
$file_name
echo
" server_name
$cus_domain
.q-gp.com;"
>>
$file_name
echo
""
>>
$file_name
echo
" location / {"
>>
$file_name
echo
" proxy_pass http://
$cus_ip
:
$cus_port
;"
>>
$file_name
echo
" }"
>>
$file_name
echo
"}"
>>
$file_name
echo
""
>>
$file_name
echo
"server {"
>>
$file_name
echo
" listen 443 ssl;"
>>
$file_name
echo
" server_name
$cus_domain
.q-gp.com;"
>>
$file_name
echo
""
>>
$file_name
echo
" ssl_certificate /home/q-gp/ssl/certificate.crt;"
>>
$file_name
echo
" ssl_certificate_key /home/q-gp/ssl/private.key;"
>>
$file_name
echo
""
>>
$file_name
echo
" ssl_session_cache shared:SSL:1m;"
>>
$file_name
echo
" ssl_session_timeout 5m;"
>>
$file_name
echo
""
>>
$file_name
echo
" ssl_ciphers HIGH:!aNULL:!MD5;"
>>
$file_name
echo
" ssl_prefer_server_ciphers on;"
>>
$file_name
echo
""
>>
$file_name
echo
" location / {"
>>
$file_name
echo
" proxy_pass http://
$cus_ip
:
$cus_port
;"
>>
$file_name
echo
" }"
>>
$file_name
echo
"}"
>>
$file_name
}
# projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
# projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
createNginxSSLConf store 172.30.199.2 9000
$nginxname
/store.conf
createNginxSSLConf store 172.30.199.2 9000
$nginxname
/store.conf
...
@@ -115,14 +154,16 @@ do
...
@@ -115,14 +154,16 @@ do
done
done
done
done
for
host_name
in
{
0..
30
}
for
host_name
in
{
0..
1
}
do
do
projectAndPort
=
`
node
$config_server
/get_project_config.js
-type
multi
-attr
port
-attr2
true
`
projectAndPort
=
`
node
$config_server
/get_project_config.js
-type
multi
-attr
port
-attr2
true
`
for
projectAndPort
in
${
projectAndPort
[@]
}
for
projectAndPort
in
${
projectAndPort
[@]
}
do
do
var
=(
${
projectAndPort
//|/
}
)
var
=(
${
projectAndPort
//|/
}
)
addFrpcSub
${
var
[0]
}
http 127.0.0 1 8000
${
var
[0
]
}
-qa
${
host_name
}
$filename
addFrpcSub
${
var
[0]
}
-
${
var
[2]
}
http 127.0.0 1 8000
${
var
[2
]
}
-qa
${
host_name
}
$filename
createNginxHttpAndSSLConf
${
var
[2]
}
-qa
${
host_name
}
192.168.6.6
${
var
[1]
}
$nginxname
/
${
var
[0]
}
-
${
host_name
}
.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