mirror of
https://github.com/openziti/zrok.git
synced 2025-06-26 04:31:30 +02:00
error handler -> 404 (#57)
This commit is contained in:
parent
ff8775c225
commit
42f4ca4292
@ -56,6 +56,10 @@
|
|||||||
}
|
}
|
||||||
#info {
|
#info {
|
||||||
width: 920px;
|
width: 920px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#info h1 {
|
||||||
|
font-size: 96pt;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -388,7 +392,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="info">
|
<div id="info">
|
||||||
<h2>zrok frontend health: ok</h2>
|
<h1>zrok frontend health: ok</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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) {
|
proxy.ErrorHandler = func(w http.ResponseWriter, r *http.Request, err error) {
|
||||||
logrus.Errorf("error proxying: %v", err)
|
logrus.Errorf("error proxying: %v", err)
|
||||||
|
notfound_ui.WriteNotFound(w)
|
||||||
}
|
}
|
||||||
|
|
||||||
return proxy, nil
|
return proxy, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user