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
63cc93af
Commit
63cc93af
authored
Feb 27, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default 192.168.6.3
parent
9eb0f607
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
make_frp_ini_V2.sh
qa_shell_script/ngrok/make_frp_ini_V2.sh
+20
-2
No files found.
qa_shell_script/ngrok/make_frp_ini_V2.sh
View file @
63cc93af
...
...
@@ -85,7 +85,7 @@ createK8sNginxConf(){
echo
" proxy_set_header REMOTE_ADDR
\$
remote_addr; "
>>
$file_name
echo
" proxy_set_header REMOTE_PORT
\$
remote_port; "
>>
$file_name
echo
" "
>>
$file_name
echo
" set
\$
ip
\"\"
; "
>>
$file_name
echo
" set
\$
ip
\"
192.168.6.3
\"
; "
>>
$file_name
echo
" location / { "
>>
$file_name
echo
"
${
_str
}
"
>>
$file_name
echo
" proxy_pass http://
\$
ip; "
>>
$file_name
...
...
@@ -106,7 +106,7 @@ createK8sNginxConf(){
echo
" proxy_set_header REMOTE_ADDR
\$
remote_addr; "
>>
$file_name
echo
" proxy_set_header REMOTE_PORT
\$
remote_port; "
>>
$file_name
echo
" "
>>
$file_name
echo
" set
\$
ip
\"\"
; "
>>
$file_name
echo
" set
\$
ip
\"
192.168.6.3
\"
; "
>>
$file_name
echo
" location / { "
>>
$file_name
echo
"
${
_str
}
"
>>
$file_name
echo
" proxy_pass http://
\$
ip; "
>>
$file_name
...
...
@@ -177,3 +177,21 @@ done
createK8sNginxConf
$nginxname
/k8s.conf
nginx
-s
reload
# 3 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# 2 '$status $body_bytes_sent "$http_referer" '
# 1 '"$http_user_agent" "$http_x_forwarded_for" "$http_QT_TOKEN"';
# 23 server_names_hash_bucket_size 10240;
# 1 sendfile on;
# 2 tcp_nopush on;
# 15 access_log logs/k8s.log main;
# 16 error_log logs/k8s_error.log;
# 17 default_type text/plain;
# content_by_lua '
# ngx.say(ngx.var.ip);
# ';
\ 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