Allows HTTP bind address to be overridden by an environment variable
Uses REGISTRY_HTTP_ADDR
This commit is contained in:
parent
a35273a0db
commit
c51ea97234
@ -311,6 +311,10 @@ func parseV0_1Registry(in []byte) (*Configuration, error) {
|
|||||||
config.Reporting.NewRelic.Name = newRelicName
|
config.Reporting.NewRelic.Name = newRelicName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if httpAddr, ok := envMap["REGISTRY_HTTP_ADDR"]; ok {
|
||||||
|
config.HTTP.Addr = httpAddr
|
||||||
|
}
|
||||||
|
|
||||||
return (*Configuration)(&config), nil
|
return (*Configuration)(&config), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user