1
0
mirror of https://github.com/distribution/distribution synced 2024-11-06 19:35:52 +01:00

proxy: Do not configure HTTP secret for proxy registry (#4305)

This commit is contained in:
Milos Gajdos 2024-04-23 08:17:50 +01:00 committed by GitHub
commit bdd3d31fae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -155,7 +155,11 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App {
panic(err)
}
app.configureSecret(config)
// Do not configure HTTP secret for a proxy registry as HTTP secret
// is only used for blob uploads and a proxy registry does not support blob uploads.
if !app.isCache {
app.configureSecret(config)
}
app.configureEvents(config)
app.configureRedis(config)
app.configureLogHook(config)