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
5b3e598c
Commit
5b3e598c
authored
Feb 08, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
8f7fd9f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
make_frp_ini_V2.sh
qa_shell_script/ngrok/make_frp_ini_V2.sh
+3
-4
No files found.
qa_shell_script/ngrok/make_frp_ini_V2.sh
View file @
5b3e598c
...
...
@@ -70,7 +70,6 @@ getK8sConditionStr(){
}
createK8sNginxConf
(){
condition
=
$1
file_name
=
$2
echo
"
$file_name
"
echo
"server { "
>>
$file_name
...
...
@@ -82,7 +81,7 @@ createK8sNginxConf(){
echo
" "
>>
$file_name
echo
" set
\$
ip ""; "
>>
$file_name
echo
" location / { "
>>
$file_name
echo
"
${
condition
}
"
>>
$file_name
echo
"
${
_str
}
"
>>
$file_name
echo
" proxy_pass http://
$ip
; "
>>
$file_name
echo
" } "
>>
$file_name
echo
"} "
>>
$file_name
...
...
@@ -101,7 +100,7 @@ createK8sNginxConf(){
echo
" "
>>
$file_name
echo
" set
\$
ip ""; "
>>
$file_name
echo
" location / { "
>>
$file_name
echo
"
${
condition
}
"
>>
$file_name
echo
"
${
_str
}
"
>>
$file_name
echo
" proxy_pass http://
$ip
; "
>>
$file_name
echo
" } "
>>
$file_name
echo
"} "
>>
$file_name
...
...
@@ -167,6 +166,6 @@ do
namespace
=(
${
host_name
//|/
}
)
getK8sConditionStr
${
namespace
[0]
}
${
namespace
[1]
}
:
${
namespace
[2]
}
done
createK8sNginxConf
$
_str
$
nginxname
/k8s.conf
createK8sNginxConf
$nginxname
/k8s.conf
# nginx -s reload
\ No newline at end of file
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