mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
Restore /ping without hostname
This commit is contained in:
parent
ebc1453292
commit
4f605aa757
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ func main() {
|
|||
|
||||
topMux := http.NewServeMux()
|
||||
if authenticateService != nil {
|
||||
// Need to handle ping without host lookup for LB
|
||||
topMux.HandleFunc("/ping", func(rw http.ResponseWriter, _ *http.Request) {
|
||||
rw.WriteHeader(http.StatusOK)
|
||||
fmt.Fprintf(rw, "OK")
|
||||
})
|
||||
topMux.Handle(authHost+"/", authenticateService.Handler())
|
||||
}
|
||||
if proxyService != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue