Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arloor/go_web_server
https://github.com/arloor/go_web_server
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/arloor/go_web_server
- Owner: arloor
- Created: 2023-05-20T10:18:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-11T09:03:20.000Z (about 1 month ago)
- Last Synced: 2024-10-20T06:19:22.475Z (about 1 month ago)
- Language: Go
- Size: 82 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## static file serve AND Http TUNNEL proxy
### Usage
```shell
curl -SLfO https://github.com/arloor/go_web_server/releases/download/v1.0.0/go_web_server # v1.0.0 is auto updated by github action
install go_web_server /usr/local/bin/go_web_server
go_web_server
``````shell
2023/12/24 15:46:27 config.go:38: go web server config:
addr: :7788
tls: false
cert: cert.pem
key: privkey.pem
log: /tmp/proxy.log
content: /data
auth: ""
2023/12/24 15:46:35 httpHandlerFunc.go:47: xxxxxxxxx:55054 GET / HTTP/1.1
2023/12/24 15:46:35 httpHandlerFunc.go:47: xxxxxxxxx:55054 GET /favicon.ico HTTP/1.1
2023/12/24 15:46:36 httpHandlerFunc.go:47: xxxxxxxxx:55054 GET /rust_http_proxy/ HTTP/1.1
.....
2023/12/24 15:47:38 httpHandlerFunc.go:45: xxxxxxxxx:56902 CONNECT baidu.com:443 HTTP/1.1
2023/12/24 15:47:46 httpHandlerFunc.go:45: xxxxxxxxx:38208 CONNECT www.baidu.com:443 HTTP/1.1
```### static files dowload
![Alt text](image.png)
### Http TUNNEL proxy
```shell
curl https://www.baidu.com -p -x https:/localhost:7788 -v --proxy-insecure -U username:password
```