Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Disable middlewares to run on HTTP socket
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <[email protected]>
  • Loading branch information
teran committed Apr 15, 2018
1 parent 6d197ee commit 965cd16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/config/simple/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/kubernetes/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/svcproxy/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 965cd16

Please sign in to comment.