Fix Dokploy Bad Gateway: dokploy-network and expose 8080.

This commit is contained in:
2026-07-29 09:35:08 +03:00
parent 08750add83
commit 57d8ed7388
5 changed files with 31 additions and 13 deletions
+5
View File
@@ -70,6 +70,11 @@ func main() {
fileServer(r, "/static/", http.Dir(staticDir))
r.Get("/", app.Home)
r.Get("/healthz", func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("ok"))
})
r.Get("/login", app.LoginPage)
r.Post("/login", app.LoginPost)
r.Get("/logout", app.Logout)