first commit
This commit is contained in:
13
assets/scripts/config/GameConfig.ts
Normal file
13
assets/scripts/config/GameConfig.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// /**连接配置*/
|
||||
// 使用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 };
|
||||
Reference in New Issue
Block a user