https://github.com/0-rtt/ghproxy-go
基于Go语言开发的Github文件代理加速工具!
https://github.com/0-rtt/ghproxy-go
Last synced: 10 months ago
JSON representation
基于Go语言开发的Github文件代理加速工具!
- Host: GitHub
- URL: https://github.com/0-rtt/ghproxy-go
- Owner: 0-RTT
- Created: 2024-08-19T13:21:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T02:04:43.000Z (over 1 year ago)
- Last Synced: 2025-04-12T05:15:48.197Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 57
- Watchers: 1
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ghproxy-go
## 一键安装
```
bash -c "$(curl -L https://raw.githubusercontent.com/0-RTT/index/main/ghproxy-go.sh)" @ install
```
## 一键卸载
```
bash -c "$(curl -L https://raw.githubusercontent.com/0-RTT/index/main/ghproxy-go.sh)" @ remove
```
## 配置nginx反代
```
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
```