Fix image signed URLs ignoring updated public base URL.
CI / docker (push) Failing after 10s

Resolve public_base_url at SignURL time so admin settings apply without restart.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-06-24 14:34:22 +08:00
parent e761074fb9
commit 2665ac1dee
4 changed files with 45 additions and 15 deletions
+2 -2
View File
@@ -72,10 +72,10 @@ func main() {
}
return "http://" + a
}
imgStore := imagestore.New(db.DB(), imageDir, publicURL(), rt.EncryptionKey(), rt.SignedURLTTL())
imgStore := imagestore.New(db.DB(), imageDir, publicURL, rt.EncryptionKey(), rt.SignedURLTTL())
_ = imgStore.EnsureDir()
predSvc := prediction.NewService(db.DB(), memCache, imgStore, publicURL(), rt.PredictionWaitSeconds())
predSvc := prediction.NewService(db.DB(), memCache, imgStore, rt.PredictionWaitSeconds())
gw := gateway.New(memCache, rt)
mon := monitor.New(gw, memCache, db, rt)