mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 20:06:03 +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()
|
topMux := http.NewServeMux()
|
||||||
if authenticateService != nil {
|
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())
|
topMux.Handle(authHost+"/", authenticateService.Handler())
|
||||||
}
|
}
|
||||||
if proxyService != nil {
|
if proxyService != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue