diff --git a/README.md b/README.md index 99cb4f9..9a1ab18 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ listener: httpAddr: :8080 # Which address to listen for HTTPS requests httpsAddr: :8443 - # Middlewares list to apply to each request + # Middlewares list to apply to each request passing through HTTPS socket # Available options: # - logging # - metrics diff --git a/examples/config/simple/config.yaml b/examples/config/simple/config.yaml index ba0787b..9a90683 100644 --- a/examples/config/simple/config.yaml +++ b/examples/config/simple/config.yaml @@ -9,7 +9,7 @@ listener: httpAddr: :8080 # Which address to listen for HTTPS requests httpsAddr: :8443 - # Middlewares list to apply to each request + # Middlewares list to apply to each request passing through HTTPS socket # Available options: # - logging # - metrics diff --git a/examples/kubernetes/configmap.yaml b/examples/kubernetes/configmap.yaml index c165902..2378f5b 100644 --- a/examples/kubernetes/configmap.yaml +++ b/examples/kubernetes/configmap.yaml @@ -14,7 +14,7 @@ data: httpAddr: :8080 # Which address to listen for HTTPS requests httpsAddr: :8443 - # Middlewares list to apply to each request + # Middlewares list to apply to each request passing through HTTPS socket # Available options: # - logging # - metrics diff --git a/src/svcproxy/cmd/main.go b/src/svcproxy/cmd/main.go index ad78e22..7656748 100644 --- a/src/svcproxy/cmd/main.go +++ b/src/svcproxy/cmd/main.go @@ -102,7 +102,7 @@ func main() { // Run http listeners httpSvc := &http.Server{ Addr: cfg.Listener.HTTPAddr, - Handler: middleware.Chain(acm.HTTPHandler(svc), cfg.Listener.Middlewares...), + Handler: acm.HTTPHandler(svc), } go func() { log.Printf("Listening to Service HTTP socket: %s", cfg.Listener.HTTPAddr)