Opt: refactor tag list pagination support (#4353)

This commit is contained in:
Milos Gajdos
2026-04-04 13:49:23 -07:00
committed by GitHub
5 changed files with 61 additions and 3 deletions

View File

@@ -223,6 +223,8 @@ middleware:
- name: redirect
options:
baseurl: https://example.com/
tags:
maxtags: 1000
http:
addr: localhost:5000
prefix: /my/nested/registry/
@@ -800,6 +802,21 @@ location of a proxy for the layer stored by the S3 storage driver.
|-----------|----------|-------------------------------------------------------------------------------------------------------------|
| `baseurl` | yes | `SCHEME://HOST` at which layers are served. Can also contain port. For example, `https://example.com:5443`. |
## `tags`
The `tags` subsection provides configuration to limit the maximum number of tags
returned by the tags API endpoint. When a client requests the list of tags for
a repository, the registry will return at most `maxtags` tags.
```yaml
tags:
maxtags: 100
```
| Parameter | Required | Description |
|-----------|----------|-------------------------------------------------------------------------------------|
| `maxtags` | no | Overrides the maximum number of tags returned by the tags endpoint, default: `1000` |
## `http`
```yaml