Merge pull request #855 from BrianBland/ng-configuration

Allows HTTP bind address to be overridden by an environment variable
pull/4/head
Stephen Day 2014-12-15 18:27:20 -08:00
commit 15ecd3b3e9
1 changed files with 4 additions and 0 deletions

View File

@ -311,6 +311,10 @@ func parseV0_1Registry(in []byte) (*Configuration, error) {
config.Reporting.NewRelic.Name = newRelicName
}
if httpAddr, ok := envMap["REGISTRY_HTTP_ADDR"]; ok {
config.HTTP.Addr = httpAddr
}
return (*Configuration)(&config), nil
}