Skip to content

Commit

Permalink
Fix too many redirect
Browse files Browse the repository at this point in the history
Signed-off-by: Emile Vauge <[email protected]>
  • Loading branch information
emilevauge committed Apr 13, 2017
1 parent c766439 commit 9b8bb4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,18 +553,16 @@ func (server *Server) buildEntryPoints(globalConfiguration GlobalConfiguration)
// provider configurations.
func (server *Server) loadConfig(configurations configs, globalConfiguration GlobalConfiguration) (map[string]*serverEntryPoint, error) {
serverEntryPoints := server.buildEntryPoints(globalConfiguration)
redirectHandlers := make(map[string]negroni.Handler)

backends := map[string]http.Handler{}

backendsHealthcheck := map[string]*healthcheck.BackendHealthCheck{}

backend2FrontendMap := map[string]string{}

for _, configuration := range configurations {
frontendNames := sortedFrontendNamesForConfig(configuration)
frontend:
for _, frontendName := range frontendNames {
redirectHandlers := make(map[string]negroni.Handler)
frontend := configuration.Frontends[frontendName]
backends := map[string]http.Handler{}

log.Debugf("Creating frontend %s", frontendName)

Expand Down

0 comments on commit 9b8bb4d

Please sign in to comment.