first commit

This commit is contained in:
2025-12-30 00:36:45 +04:00
commit ef2dd72d0d
6 changed files with 418 additions and 0 deletions

38
README.md Normal file
View File

@@ -0,0 +1,38 @@
# 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`:
```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:
```go
import "github.com/aykhans/go-utils"
```
Use:
```go
import "gopkg.yourdomain.com/go-utils"
```