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
b6169630
Commit
b6169630
authored
Jun 19, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
de8b9cf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
2 deletions
+52
-2
make_frp_ini_V2.sh
qa_shell_script/ngrok/make_frp_ini_V2.sh
+52
-2
No files found.
qa_shell_script/ngrok/make_frp_ini_V2.sh
View file @
b6169630
...
@@ -11,7 +11,57 @@ ips=`cat $config_server/get_env_ip.sh`
...
@@ -11,7 +11,57 @@ ips=`cat $config_server/get_env_ip.sh`
rm
-rf
$filename
rm
-rf
$filename
rm
-rf
$nginxname
/
*
rm
-rf
$nginxname
/
*
function
createNginxForQGP
()
{
project_name
=
$1
cus_domain
=
$2
cus_ip
=
$3
http_port
=
$4
https_port
=
$5
file_name
=
$6
touch
$file_name
echo
"############----
${
project_name
}
----############"
>>
$file_name
echo
"server {"
>>
$file_name
echo
" listen 80;"
>>
$file_name
echo
" server_name
$cus_domain
.q-gp.com;"
>>
$file_name
echo
" underscores_in_headers on;"
>>
$file_name
echo
" proxy_set_header REMOTE_ADDR
\$
remote_addr; "
>>
$file_name
echo
" proxy_set_header REMOTE_PORT
\$
remote_port; "
>>
$file_name
echo
" proxy_set_header Host
\$
host;"
>>
$file_name
echo
" proxy_set_header QT_TOKEN
\$
http_QT_TOKEN;"
>>
$file_name
echo
" proxy_set_header Upgrade
\$
http_upgrade;"
>>
$file_name
echo
" proxy_set_header Connection
\"
upgrade
\"
;"
>>
$file_name
echo
" client_max_body_size 100M;"
>>
$file_name
echo
""
>>
$file_name
echo
" location / {"
>>
$file_name
echo
" proxy_pass http://
$cus_ip
:
$http_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
" proxy_set_header QT_TOKEN
\$
http_QT_TOKEN;"
>>
$file_name
echo
" ssl_certificate /home/q-gp/ssl/q-gp/certificate.crt;"
>>
$file_name
echo
" ssl_certificate_key /home/q-gp/ssl/q-gp/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
" proxy_set_header REMOTE_ADDR
\$
remote_addr; "
>>
$file_name
echo
" proxy_set_header REMOTE_PORT
\$
remote_port; "
>>
$file_name
echo
" proxy_set_header Host
\$
host;"
>>
$file_name
echo
""
>>
$file_name
echo
" location / {"
>>
$file_name
echo
" proxy_pass http://
$cus_ip
:
$https_port
;"
>>
$file_name
echo
" }"
>>
$file_name
echo
"}"
>>
$file_name
}
function
createNginxHttpAndSSLConf
()
function
createNginxHttpAndSSLConf
()
{
{
...
@@ -176,8 +226,8 @@ createNginxHttpAndSSLConf login login 172.30.220.22 80 80 $nginxname/base.conf
...
@@ -176,8 +226,8 @@ createNginxHttpAndSSLConf login login 172.30.220.22 80 80 $nginxname/base.conf
createNginxHttpAndSSLConf user user 172.30.220.22 80 80
$nginxname
/base.conf
createNginxHttpAndSSLConf user user 172.30.220.22 80 80
$nginxname
/base.conf
createNginxHttpAndSSLConf riskfield riskfield 172.30.220.13 9010 9010
$nginxname
/base.conf
createNginxHttpAndSSLConf riskfield riskfield 172.30.220.13 9010 9010
$nginxname
/base.conf
createNginxHttpAndSSLConf pinjaman-img pinjaman-img 172.30.220.12 22122 22122
$nginxname
/base.conf
createNginxHttpAndSSLConf pinjaman-img pinjaman-img 172.30.220.12 22122 22122
$nginxname
/base.conf
createNginx
HttpAndSSLConf
git git 172.30.10.23 80 80
$nginxname
/base.conf
createNginx
ForQGP
git git 172.30.10.23 80 80
$nginxname
/base.conf
createNginx
HttpAndSSLConf
gitabc gitabc 172.30.10.24 80 80
$nginxname
/base.conf
createNginx
ForQGP
gitabc gitabc 172.30.10.24 80 80
$nginxname
/base.conf
createNginxHttpAndSSLConf sonar sonar 172.30.3.42 9000 9000
$nginxname
/base.conf
createNginxHttpAndSSLConf sonar sonar 172.30.3.42 9000 9000
$nginxname
/base.conf
createNginxHttpAndSSLConf pipes pipes 10.17.115.10 80 80
$nginxname
/base.conf
createNginxHttpAndSSLConf pipes pipes 10.17.115.10 80 80
$nginxname
/base.conf
createNginxHttpAndSSLConf kafka kafka 10.17.115.10 80 80
$nginxname
/base.conf
createNginxHttpAndSSLConf kafka kafka 10.17.115.10 80 80
$nginxname
/base.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