diff --git a/aws-es-proxy.go b/aws-es-proxy.go index 54bdd575..289914e8 100644 --- a/aws-es-proxy.go +++ b/aws-es-proxy.go @@ -210,6 +210,10 @@ func (p *proxy) getSigner() *v4.Signer { } func (p *proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/terminate-proxy" && r.Method == http.MethodPost { + logrus.Infoln("Terminate Signal") + os.Exit(0) + } if p.auth { user, pass, ok := r.BasicAuth()