Skip to content

Commit

Permalink
chore: add README
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotiaWang committed Feb 28, 2024
1 parent 55e2968 commit 90c103c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# gh-proxy-go

简单的 GitHub 文件代理工具。修改自 [hunshcn/gh-proxy](https://github.com/hunshcn/gh-proxy),但是更轻量。

A simple Go proxy for GitHub API, but MUCH lighter. Ported & modified from [hunshcn/gh-proxy](https://github.com/hunshcn/gh-proxy).

已知问题:不支持 Git clone。制作本项目主要是为了节约硬盘空间,本人未用到其 git clone 代理功能,因此没有实现(或者说修复),欢迎 PR。

## 用法

### Docker

```bash
docker run -d -p 80:80 --name gh-proxy-go anotia/gh-proxy-go
```

### 命令行运行

在 Releases 下载对应平台的二进制文件运行,或者使用 Go 编译后运行。

```bash
# 直接运行在 0.0.0.0:80
./gh-proxy-go

# 修改端口 / 地址
./gh-proxy-go --port 8080 --host 127.0.0.1
```

0 comments on commit 90c103c

Please sign in to comment.