Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Use Proxyheaders to get real IPs for proxied setups
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Kim <[email protected]>
  • Loading branch information
jooskim committed Aug 13, 2021
1 parent 0a8dc46 commit 2c98104
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plank/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,9 @@ func (ps *platformServer) loadGlobalHttpHandler(h *mux.Router) {
ps.router = h
ps.HttpServer.Handler = handlers.RecoveryHandler()(
handlers.CompressHandler(
handlers.CombinedLoggingHandler(
ps.serverConfig.LogConfig.GetAccessLogFilePointer(), ps.router)))
handlers.ProxyHeaders(
handlers.CombinedLoggingHandler(
ps.serverConfig.LogConfig.GetAccessLogFilePointer(), ps.router))))
}

func (ps *platformServer) configureRobotsPath() {
Expand Down

0 comments on commit 2c98104

Please sign in to comment.