Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Hide echo banner and port output

天舟b5bd91ab7164
diff --git a/server/server.go b/server/server.go
index daabccfede..b15dd2d822 100644
--- a/server/server.go
+++ b/server/server.go
@@ -80,6 +80,8 @@ func getFileSystem() http.FileSystem {
func NewServer(logger *zap.Logger, mode, host string, port int, secret string) *Server {
e := echo.New()
+ e.HideBanner = true
+ e.HidePort = true
// Catch-all route to return index.html, this is to prevent 404 when accessing non-root url.
// See https://stackoverflow.com/questions/27928372/react-router-urls-dont-work-when-refreshing-or-writing-manually