Merge branch 'main-upstream' into fix/volcengine_default_baseurl

# Conflicts:
#	main.go
This commit is contained in:
Seefs
2025-09-29 12:08:52 +08:00
16 changed files with 880 additions and 348 deletions

View File

@@ -18,6 +18,7 @@ import (
"os"
"strconv"
"strings"
"time"
"github.com/bytedance/gopkg/util/gopool"
"github.com/gin-contrib/sessions"
@@ -35,6 +36,7 @@ var buildFS embed.FS
var indexPage []byte
func main() {
startTime := time.Now()
err := InitResources()
if err != nil {
@@ -168,6 +170,10 @@ func main() {
if port == "" {
port = strconv.Itoa(*common.Port)
}
// Log startup success message
common.LogStartupSuccess(startTime, port)
err = server.Run(":" + port)
if err != nil {
common.FatalLog("failed to start HTTP server: " + err.Error())
@@ -222,4 +228,4 @@ func InitResources() error {
return err
}
return nil
}
}