Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tls-forward
Project
Project
Details
Activity
Releases
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
wangmingming
tls-forward
Commits
52ac6441
Commit
52ac6441
authored
Sep 25, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cronet 130.0.6700.0
parent
fdd59101
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
readme.md
readme.md
+20
-0
No files found.
readme.md
View file @
52ac6441
## tls 转发请求
基本就看 tls/tls.go
```
go
func
Forward
(
c
*
gin
.
Context
){}
```
入参类型 json 格式
```
go
type
ForwardItem
struct
{
Proxy
string
`json:"proxy,omitempty"`
Method
string
`json:"method,omitempty"`
Headers
map
[
string
]
string
`json:"headers,omitempty"`
Url
string
`json:"url,omitempty"`
Data
string
`json:"data,omitempty"`
Timeout
int
`json:"timeout,omitempty"`
AllowRedirects
bool
`json:"allow_redirects,omitempty"`
Verify
bool
`json:"verify,omitempty"`
Debug
bool
`json:"debug"`
RandomTls
bool
`json:"random_tls"`
}
```
```
shell
docker run
-itd
--name
lcc-tls-forward
--privileged
=
true
--restart
=
always
-v
/data/log/:/data/log/
-v
/home/opt/tls-forward:/root/src/
-p
58000:58000
--cpus
=
2
-m
2G
--log-driver
=
json-file
--log-opt
max-size
=
50m
--log-opt
max-file
=
3 golang /bin/sh
"/root/src/run.sh"
```
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