Compare commits

...

1 Commits

Author SHA1 Message Date
allanice001
586e51b8cc fix: db-studio prefix fixes 2025-11-11 04:23:27 +00:00
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(zeroLogMiddleware())
r.Use(middleware.Recoverer)
// r.Use(middleware.RedirectSlashes)
r.Use(SecurityHeaders)
r.Use(requestBodyLimit(10 << 20))
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,
"--bind", host,
"--listen", port,
"--prefix", "/db-studio",
"--prefix", "db-studio",
"--skip-open",
}
if readonly {