fix: db-studio prefix fixes

This commit is contained in:
allanice001
2025-11-11 04:23:27 +00:00
parent ea4c625269
commit 586e51b8cc
2 changed files with 2 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ func NewRouter(db *gorm.DB, jobs *bg.Jobs, studio http.Handler) http.Handler {
r.Use(middleware.RealIP) r.Use(middleware.RealIP)
r.Use(zeroLogMiddleware()) r.Use(zeroLogMiddleware())
r.Use(middleware.Recoverer) r.Use(middleware.Recoverer)
// r.Use(middleware.RedirectSlashes)
r.Use(SecurityHeaders) r.Use(SecurityHeaders)
r.Use(requestBodyLimit(10 << 20)) r.Use(requestBodyLimit(10 << 20))
r.Use(httprate.LimitByIP(100, 1*time.Minute)) r.Use(httprate.LimitByIP(100, 1*time.Minute))

View File

@@ -35,7 +35,7 @@ func StartPgweb(dbURL, host, port string, readonly bool, user, pass string) (*Pg
"--url", dbURL, "--url", dbURL,
"--bind", host, "--bind", host,
"--listen", port, "--listen", port,
"--prefix", "/db-studio", "--prefix", "db-studio",
"--skip-open", "--skip-open",
} }
if readonly { if readonly {