mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
fix: db-studio prefix fixes
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user