feat: app proxy

This commit is contained in:
Simon Ding
2024-07-27 17:18:38 +08:00
parent 5175e651ee
commit feecc9f983
8 changed files with 52 additions and 14 deletions

View File

@@ -43,6 +43,8 @@ type Server struct {
func (s *Server) Serve() error {
s.scheduler()
s.reloadTasks()
s.restoreProxy()
s.jwtSerect = s.db.GetSetting(db.JwtSerectKey)
//st, _ := fs.Sub(ui.Web, "build/web")
s.r.Use(static.Serve("/", static.EmbedFolder(ui.Web, "build/web")))