refactor: Enhance WASM POW solver with channel-based pooling and configurable size, update token estimation, and fix CORS origin reflection.

This commit is contained in:
CJACK
2026-02-17 03:34:48 +08:00
parent 534fd1d14b
commit 2cde0a1d84
7 changed files with 193 additions and 40 deletions

View File

@@ -9,6 +9,7 @@ import (
"syscall"
"time"
"ds2api/internal/auth"
"ds2api/internal/config"
"ds2api/internal/server"
"ds2api/internal/webui"
@@ -16,6 +17,7 @@ import (
func main() {
webui.EnsureBuiltOnStartup()
_ = auth.AdminKey()
app := server.NewApp()
port := strings.TrimSpace(os.Getenv("PORT"))
if port == "" {