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
+1 -1
View File
@@ -66,7 +66,7 @@ func (a *App) SiteOnline(ctx context.Context) (models.SiteStatus, error) {
func (a *App) OfflineMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if strings.HasPrefix(r.URL.Path, "/login") || strings.HasPrefix(r.URL.Path, "/admin") || strings.HasPrefix(r.URL.Path, "/static") {
if strings.HasPrefix(r.URL.Path, "/login") || strings.HasPrefix(r.URL.Path, "/admin") || strings.HasPrefix(r.URL.Path, "/static") || r.URL.Path == "/healthz" {
next.ServeHTTP(w, r)
return
}