Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gor-script
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
胡凯旋
gor-script
Commits
1373d257
Commit
1373d257
authored
Mar 29, 2019
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
backend_urls
backend_urls
+3
-0
cp-traffic.sh
cp-traffic.sh
+28
-0
No files found.
backend_urls
0 → 100644
View file @
1373d257
/api/ok$
/api/index/v6
/mm/nn
cp-traffic.sh
0 → 100755
View file @
1373d257
#/bin/bash
file
=
$1
allow_url_param
=
""
if
[
-f
"
$file
"
]
then
echo
"
$file
found."
while
read
-r
url
do
if
[[
!
-z
$url
]]
then
allow_url_param+
=
"--http-allow-url
${
url
}
"
fi
done
<
"
$file
"
else
echo
"
$file
not found"
fi
echo
"==============="
echo
$allow_url_param
echo
"==============="
echo
"从
$2
上复制流量(来自文件
$1
配置的URL)到
$3
上"
sudo
gor
--input-raw
$2
--output-http
$3
$allow_url_param
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