部署说明
这一页把「服务端怎么跑、Cloudflare 怎么配、每个游戏需要什么文件」讲清楚,方便你上线时对照检查。
运行时
- Python
- 3.12.14
- 系统
- Linux 7.0.0-28-generic
- 站点名
- 像素游戏厅
- 已运行
- 47097 秒
- 监听
- 127.0.0.1:8081
- 反代信任
- 已开启(Cloudflare / Caddy)
目录
- 游戏根目录
- /app/games
- 红警目录
- /app/games/ra2web.github.io-0.86.0
- CS 客户端
- /app/games/cs16-web-main/web-server/go-webrtc-server/client
- valve.zip
- 已就绪
- CS 中继 API
- http://127.0.0.1:8080
红警接入模式
当前:path,路径 /ra2/,
子域 ra2.localhost。
推荐用子域方式(例如 ra2.example.com),零改动、Service Worker 也能用。
CS1.6 联机链路
浏览器 → wss://本站/cs/relay/8015/websocket(走 Cloudflare 443)→
Go 中继(本机 8015)→ ReHLDS(本机 27015)。
游戏媒体流为 WebRTC,UDP 直连源站,需要放行源站的 UDP 端口。
进入 CS 大厅接口
- /api/health 站点与游戏状态
- /api/cs/servers CS 服务器列表
- /api/cs/status CS 中继状态
- /api/ra2/regions 红警大区
- /api/cloud/status 云游戏代理配置
- /api/readyz 就绪探针