Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lwch/goproxy
自建go mod代理服务
https://github.com/lwch/goproxy
gomod gomodule goproxy
Last synced: 2 months ago
JSON representation
自建go mod代理服务
- Host: GitHub
- URL: https://github.com/lwch/goproxy
- Owner: lwch
- License: mit
- Created: 2023-03-29T03:08:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-16T05:33:53.000Z (5 months ago)
- Last Synced: 2024-07-16T07:57:48.618Z (5 months ago)
- Topics: gomod, gomodule, goproxy
- Language: Go
- Homepage:
- Size: 186 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# goproxy
自建go mod代理服务
## 一键启动
docker方式启动:
```shell
$ docker run -d -p 8080:8080 lwch/goproxy
```docker-compose方式启动:
首先将[docker-compose.yml](docker-compose.yml)保存到本地,然后使用以下命令进行启动
```shell
$ docker-compose up -d
```## 使用
将GOPROXY环境变量设置为该代理的请求地址即可,如:
```shell
GOPROXY=http://example:8080,direct
```## 文件存储
目前仅支持本地文件存储,将来会添加minio方式的文件存储,配置文件中的默认缓存时长为24小时