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
c673c538
Commit
c673c538
authored
Jun 19, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ff
parent
5c2494de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
41 deletions
+41
-41
make_frp_ini_V2.sh
qa_shell_script/ngrok/make_frp_ini_V2.sh
+41
-41
No files found.
qa_shell_script/ngrok/make_frp_ini_V2.sh
View file @
c673c538
...
@@ -41,27 +41,27 @@ function createNginxHttpAndSSLConf()
...
@@ -41,27 +41,27 @@ function createNginxHttpAndSSLConf()
echo
" }"
>>
$file_name
echo
" }"
>>
$file_name
echo
"}"
>>
$file_name
echo
"}"
>>
$file_name
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.liangkebang.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/liangkebang/liangkebang.csr
;" >> $file_name
echo
" ssl_certificate /home/q-gp/ssl/liangkebang/liangkebang.crt
;"
>>
$file_name
#
echo " ssl_certificate_key /home/q-gp/ssl/liangkebang/liangkebang.key;" >> $file_name
echo
" ssl_certificate_key /home/q-gp/ssl/liangkebang/liangkebang.key;"
>>
$file_name
#
echo "" >> $file_name
echo
""
>>
$file_name
#
echo " ssl_session_cache shared:SSL:1m;" >> $file_name
echo
" ssl_session_cache shared:SSL:1m;"
>>
$file_name
#
echo " ssl_session_timeout 5m;" >> $file_name
echo
" ssl_session_timeout 5m;"
>>
$file_name
#
echo "" >> $file_name
echo
""
>>
$file_name
#
echo " ssl_ciphers HIGH:!aNULL:!MD5;" >> $file_name
echo
" ssl_ciphers HIGH:!aNULL:!MD5;"
>>
$file_name
#
echo " ssl_prefer_server_ciphers on;" >> $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_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
#
echo " proxy_set_header Host \$host;" >> $file_name
echo
" proxy_set_header Host
\$
host;"
>>
$file_name
#
echo "" >> $file_name
echo
""
>>
$file_name
#
echo " location / {" >> $file_name
echo
" location / {"
>>
$file_name
#
echo " proxy_pass http://$cus_ip:$https_port;" >> $file_name
echo
" proxy_pass http://
$cus_ip
:
$https_port
;"
>>
$file_name
#
echo " }" >> $file_name
echo
" }"
>>
$file_name
#
echo "}" >> $file_name
echo
"}"
>>
$file_name
}
}
...
@@ -95,26 +95,26 @@ createK8sNginxConf(){
...
@@ -95,26 +95,26 @@ createK8sNginxConf(){
echo
" } "
>>
$file_name
echo
" } "
>>
$file_name
echo
"} "
>>
$file_name
echo
"} "
>>
$file_name
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 *.liangkebang.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/liangkebang/liangkebang.csr
; " >> $file_name
echo
" ssl_certificate /home/q-gp/ssl/liangkebang/liangkebang.crt
; "
>>
$file_name
#
echo " ssl_certificate_key /home/q-gp/ssl/liangkebang/liangkebang.key; " >> $file_name
echo
" ssl_certificate_key /home/q-gp/ssl/liangkebang/liangkebang.key; "
>>
$file_name
#
echo " ssl_session_cache shared:SSL:1m; " >> $file_name
echo
" ssl_session_cache shared:SSL:1m; "
>>
$file_name
#
echo " ssl_session_timeout 5m; " >> $file_name
echo
" ssl_session_timeout 5m; "
>>
$file_name
#
echo " ssl_ciphers HIGH:!aNULL:!MD5; " >> $file_name
echo
" ssl_ciphers HIGH:!aNULL:!MD5; "
>>
$file_name
#
echo " ssl_prefer_server_ciphers on; " >> $file_name
echo
" ssl_prefer_server_ciphers on; "
>>
$file_name
#
echo " proxy_set_header Host \$host; " >> $file_name
echo
" proxy_set_header Host
\$
host; "
>>
$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
#
echo " " >> $file_name
echo
" "
>>
$file_name
#
echo " set \$ip \"192.168.6.12\"; " >> $file_name
echo
" set
\$
ip
\"
192.168.6.12
\"
; "
>>
$file_name
#
echo " location / { " >> $file_name
echo
" location / { "
>>
$file_name
#
echo " ${_str} " >> $file_name
echo
"
${
_str
}
"
>>
$file_name
#
echo " proxy_pass http://\$ip; " >> $file_name
echo
" proxy_pass http://
\$
ip; "
>>
$file_name
#
echo " } " >> $file_name
echo
" } "
>>
$file_name
#
echo "} " >> $file_name
echo
"} "
>>
$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