error handler -> 404 (#57)

This commit is contained in:
Michael Quigley 2022-09-07 14:32:05 -04:00
parent ff8775c225
commit 42f4ca4292
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,10 @@
}
#info {
width: 920px;
text-align: center;
}
#info h1 {
font-size: 96pt;
}
</style>
</head>
@ -388,7 +392,7 @@
</div>
<div id="container">
<div id="info">
<h2>zrok frontend health: ok</h2>
<h1>zrok frontend health: ok</h1>
</div>
</div>
</div>

View File

@ -80,6 +80,7 @@ func newServiceProxy(cfg *Config, ctx ziti.Context) (*httputil.ReverseProxy, err
}
proxy.ErrorHandler = func(w http.ResponseWriter, r *http.Request, err error) {
logrus.Errorf("error proxying: %v", err)
notfound_ui.WriteNotFound(w)
}
return proxy, nil