Files
slgclient/assets/scripts/config/GameConfig.ts
2025-11-18 18:38:53 +08:00

14 lines
516 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// /**连接配置*/
// 使用nginx代理后的配置通过80端口访问
// WebSocket通过 /ws 路径代理到8004端口
// HTTP API通过 /api 路径代理到8088端口
import { _decorator } from 'cc';
const GameConfig = {
// 通过nginx代理的WebSocket地址nginx将/ws代理到127.0.0.1:8004
serverUrl: "ws://103.236.81.216:6060/ws",
// 通过nginx代理的HTTP API地址nginx将/api代理到127.0.0.1:8088
webUrl: "http://103.236.81.216:6060/api",
}
export { GameConfig };