GOPKGSERVER
A minimal Go server for serving vanity URLs, configurable via TOML.
Status
Alpha — functional but rough. No tests yet. Interface and config format may change.
Features
- Serves vanity URLs for
go get
- Configurable with TOML
- Supports VCS repositories (e.g., git)
- Custom directory and file view URLs
Usage
gopkgserver -config /path/to/config.toml
Configuration
Configuration is passed via the -config flag as a TOML file. Example structure:
[server]
address = ":6000"
[repo."go.example.com/cache"]
repo = "https://git.example.com/mirror/cache.git"
vcs = "git"
home = "-"
directory = "https://git.example.com/mirror/cache.git/tree/{/dir}"
file = "https://git.example.com/cache/mirror/cache.git/tree/{/dir}/{file}#n{line}"