feat: docker healthcheck (#1106)

This commit is contained in:
Jonas Plum authored and GitHub committed 2024-11-04 20:47:55 +00:00
1 parent f42de34780
commit 70ba16a6bd
5 files changed
+30 -26

No files matched your search

+7
View File
@@ -18,6 +18,13 @@ func addRoutes() func(*core.ServeEvent) error {
return c.Redirect(http.StatusFound, "/ui/")
})
e.Router.GET("/ui/*", staticFiles())
e.Router.GET("/health", func(c echo.Context) error {
if _, err := Flags(e.App); err != nil {
return err
}
return c.String(http.StatusOK, "OK")
})
e.Router.GET("/api/config", func(c echo.Context) error {
flags, err := Flags(e.App)