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
8e131781
Commit
8e131781
authored
Jun 19, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
26d19d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
make_frp_ini_V2.sh
qa_shell_script/ngrok/make_frp_ini_V2.sh
+4
-4
No files found.
qa_shell_script/ngrok/make_frp_ini_V2.sh
View file @
8e131781
...
@@ -26,7 +26,7 @@ function createNginxHttpAndSSLConf()
...
@@ -26,7 +26,7 @@ function createNginxHttpAndSSLConf()
echo
"############----
${
project_name
}
----############"
>>
$file_name
echo
"############----
${
project_name
}
----############"
>>
$file_name
echo
"server {"
>>
$file_name
echo
"server {"
>>
$file_name
echo
" listen 80;"
>>
$file_name
echo
" listen 80;"
>>
$file_name
echo
" server_name
$cus_domain
.
q-gp
.com;"
>>
$file_name
echo
" server_name
$cus_domain
.
liangkebang
.com;"
>>
$file_name
echo
" underscores_in_headers on;"
>>
$file_name
echo
" underscores_in_headers on;"
>>
$file_name
echo
" proxy_set_header REMOTE_ADDR
\$
remote_addr; "
>>
$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 REMOTE_PORT
\$
remote_port; "
>>
$file_name
...
@@ -43,7 +43,7 @@ function createNginxHttpAndSSLConf()
...
@@ -43,7 +43,7 @@ function createNginxHttpAndSSLConf()
echo
""
>>
$file_name
echo
""
>>
$file_name
echo
"server {"
>>
$file_name
echo
"server {"
>>
$file_name
echo
" listen 443 ssl;"
>>
$file_name
echo
" listen 443 ssl;"
>>
$file_name
echo
" server_name
$cus_domain
.
q-gp
.com;"
>>
$file_name
echo
" server_name
$cus_domain
.
liangkebang
.com;"
>>
$file_name
echo
""
>>
$file_name
echo
""
>>
$file_name
echo
" proxy_set_header QT_TOKEN
\$
http_QT_TOKEN;"
>>
$file_name
echo
" proxy_set_header QT_TOKEN
\$
http_QT_TOKEN;"
>>
$file_name
echo
" ssl_certificate /home/q-gp/ssl/certificate.crt;"
>>
$file_name
echo
" ssl_certificate /home/q-gp/ssl/certificate.crt;"
>>
$file_name
...
@@ -68,7 +68,7 @@ function createNginxHttpAndSSLConf()
...
@@ -68,7 +68,7 @@ function createNginxHttpAndSSLConf()
_str
=
""
_str
=
""
getK8sConditionStr
(){
getK8sConditionStr
(){
_str
=
"
${
_str
}
_str
=
"
${
_str
}
if (
\$
host ~* .*-
${
1
}
.
q-gp
.com ) {
if (
\$
host ~* .*-
${
1
}
.
liangkebang
.com ) {
set
\$
ip
${
2
}
;
set
\$
ip
${
2
}
;
}
}
"
"
...
@@ -97,7 +97,7 @@ createK8sNginxConf(){
...
@@ -97,7 +97,7 @@ createK8sNginxConf(){
echo
" "
>>
$file_name
echo
" "
>>
$file_name
echo
"server { "
>>
$file_name
echo
"server { "
>>
$file_name
echo
" listen 443 ssl; "
>>
$file_name
echo
" listen 443 ssl; "
>>
$file_name
echo
" server_name *.
q-gp
.com; "
>>
$file_name
echo
" server_name *.
liangkebang
.com; "
>>
$file_name
echo
" proxy_set_header QT_TOKEN
\$
http_QT_TOKEN; "
>>
$file_name
echo
" proxy_set_header QT_TOKEN
\$
http_QT_TOKEN; "
>>
$file_name
echo
" ssl_certificate /home/q-gp/ssl/certificate.crt; "
>>
$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
" ssl_certificate_key /home/q-gp/ssl/private.key; "
>>
$file_name
...
...
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