Golang package registry
- Go 71.4%
- HTML 25.6%
- Dockerfile 3%
|
All checks were successful
Build binaries and images / binaries (push) Successful in 59s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| Dockerfile | ||
| entries.example.json | ||
| go.mod | ||
| index.html | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| template.html | ||
Timedout Registry
Timedout Registry (https://go.timedout.uk) is a tiny (0 dependency) Go server that acts as a registry for Golang packages.
Simply throw a JSON object containing {slug: {repo_url: "...", import_path: "..."}} at it, and it will serve up the
appropriate meta tags for go get et al. to work.
Usage
Clone this repo (git clone https://git.nexy7574.co.uk/nex/go.timedout.uk.git), build main.go
(go build .), throw something into entries.json (see entries.example.json for an example),
and run the resulting binary.
Or, use Docker:
docker run -it -p 8080:8080 -v ./entries.json:/entries.json:ro nexy7574/timedout-registry:latest
Configuration
You can use -help to list available flags. The following environment variables also exist
(command flags take precedence):
| Environment Variable | Description |
|---|---|
REGISTRY_LISTEN_ADDRESS |
The address to listen on (e.g. :8080). |
REGISTRY_ENTRY_PATH |
The path to the entries.json file. |
REGISTRY_TRUSTED_PROXY |
The IP address of the reverse proxy (the IP which will be trusted to set X-Forwarded-For. |