mirror of
https://github.com/aykhans/gopkg-proxy.git
synced 2026-01-13 18:51:21 +00:00
a0a1caf3561f691847e2f4a4749e42c7f4a02db9
gopkg-proxy
A lightweight vanity import path server for Go packages. Use your own domain for clean, branded package imports.
Configuration
Add Packages
Edit main.go:
var packages = []Package{
{
Path: "/my-package",
Repo: "https://github.com/username/my-package",
VCS: "git",
},
}
Environment Variables
PORT- Server port (default:8421)HOST_HEADER- Header to read domain from (default:X-Forwarded-Host)
Usage
Instead of:
import "github.com/aykhans/go-utils"
Use:
import "gopkg.yourdomain.com/go-utils"
Languages
Go
97.7%
Dockerfile
2.3%