Merge pull request #2685 from manishtomar/mani-graceful-shutdown

Graceful shutdown
This commit is contained in:
Derek McGowan 2018-08-27 14:24:53 -07:00 committed by GitHub
commit 059f301d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 7 deletions

View file

@ -85,6 +85,10 @@ type Configuration struct {
// Location headers
RelativeURLs bool `yaml:"relativeurls,omitempty"`
// Amount of time to wait for connection to drain before shutting down when registry
// receives a stop signal
DrainTimeout time.Duration `yaml:"draintimeout,omitempty"`
// TLS instructs the http server to listen with a TLS configuration.
// This only support simple tls configuration with a cert and key.
// Mostly, this is useful for testing situations or simple deployments