diff --git a/config.yaml b/config.yaml index 13cff93..9f68414 100644 --- a/config.yaml +++ b/config.yaml @@ -1,7 +1,7 @@ # 服务端启动配置 server: host: 0.0.0.0 - port: 8080 + port: 19540 # 运行时数据目录(数据库 / 备份 / 上传资源) dataDir: data diff --git a/console/config.json b/console/config.json index 3c33b27..7d09224 100644 --- a/console/config.json +++ b/console/config.json @@ -3,7 +3,7 @@ "exe": "scoreboard.exe", "args": ["-config", "config.yaml"], "host": "127.0.0.1", - "port": 8080, + "port": 19540, "autoStart": true, "healthIntervalMs": 5000, "restartDelayMs": 3000, diff --git a/server/internal/config/config.go b/server/internal/config/config.go index 743b8c7..cdb5611 100644 --- a/server/internal/config/config.go +++ b/server/internal/config/config.go @@ -31,7 +31,7 @@ type Log struct { // Default 返回一份可直接使用的默认配置。 func Default() *Config { return &Config{ - Server: Server{Host: "0.0.0.0", Port: 8080}, + Server: Server{Host: "0.0.0.0", Port: 19540}, DataDir: "data", Log: Log{Level: "info"}, }