https://github.com/dmage/too-many-requests-registry
https://github.com/dmage/too-many-requests-registry
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dmage/too-many-requests-registry
- Owner: dmage
- Created: 2022-02-01T08:46:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-04T08:24:47.000Z (about 4 years ago)
- Last Synced: 2024-12-27T09:42:43.052Z (over 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A [Distribution](https://github.com/distribution/distribution) based registry
that returns 429: Too many requests based on user configuration.
## Usage
1. run the registry: `go run main.go`
1. configure the quota:
* via terminal: `curl -XPOST -d 'c=1' localhost:8080` (replace 1 with the desired quota)
* via browser: `open http://localhost:8080`
1. check the quota: `open http://localhost:8080`
1. use the registry (i.e `podman pull localhost:8080/ns/image:tag`)