mirror of
https://github.com/distribution/distribution.git
synced 2025-09-16 23:29:30 +00:00
registry/handles/app: always append default urls regexps
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
@@ -213,6 +213,10 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App {
|
||||
options = append(options, storage.EnableRedirect)
|
||||
}
|
||||
|
||||
if !config.Validation.Enabled {
|
||||
config.Validation.Enabled = !config.Validation.Disabled
|
||||
}
|
||||
|
||||
// configure validation
|
||||
if config.Validation.Enabled {
|
||||
if len(config.Validation.Manifests.URLs.Allow) == 0 && len(config.Validation.Manifests.URLs.Deny) == 0 {
|
||||
|
Reference in New Issue
Block a user