mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 16:54:23 +01:00
error handler -> 404 (#57)
This commit is contained in:
parent
ff8775c225
commit
42f4ca4292
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user