diff --git a/README.md b/README.md index 2dd9717..2b62342 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,11 @@ | 平台 | 下载链接 | 系统要求 | |------|---------|---------| -| Windows | [FunMC-Setup.exe](https://funmc.com/download) | Windows 10+ | -| macOS (Apple Silicon) | [FunMC-arm64.dmg](https://funmc.com/download) | macOS 11+ | -| macOS (Intel) | [FunMC-x64.dmg](https://funmc.com/download) | macOS 10.13+ | -| Linux | [FunMC.AppImage](https://funmc.com/download) | Ubuntu 18.04+ | -| Android | [FunMC.apk](https://funmc.com/download) | Android 7.0+ | +| Windows | [FunMC-Setup.exe](https://fc.funmc.cn/download) | Windows 10+ | +| macOS (Apple Silicon) | [FunMC-arm64.dmg](https://fc.funmc.cn/download) | macOS 11+ | +| macOS (Intel) | [FunMC-x64.dmg](https://fc.funmc.cn/download) | macOS 10.13+ | +| Linux | [FunMC.AppImage](https://fc.funmc.cn/download) | Ubuntu 18.04+ | +| Android | [FunMC.apk](https://fc.funmc.cn/download) | Android 7.0+ | | iOS | App Store (即将上线) | iOS 13.0+ | **私有部署用户**: 请访问你的服务器管理面板下载页面获取客户端 @@ -120,13 +120,13 @@ **Linux/macOS:** ```bash -curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/deploy.sh | bash +curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/deploy.sh | bash ``` **或者使用 Docker Compose:** ```bash # 克隆仓库 -git clone https://github.com/mofangfang/funmc.git +git clone https://gt.funmc.cn/xiaobai/FunConnect.git cd funmc # 配置环境变量 @@ -233,7 +233,7 @@ sudo systemctl status funmc-server funmc-relay ```nginx server { listen 443 ssl http2; - server_name funmc.com; + server_name fc.funmc.cn; ssl_certificate /path/to/cert.pem; ssl_certificate_key /path/to/key.pem; @@ -314,7 +314,7 @@ funmc/ ```bash # 1. 克隆仓库 -git clone https://github.com/mofangfang/funmc.git +git clone https://gt.funmc.cn/xiaobai/FunConnect.git cd funmc # 2. 启动数据库 (Docker) @@ -399,7 +399,7 @@ cargo tauri build --target x86_64-unknown-linux-gnu ### WebSocket 信令 -连接地址: `wss://funmc.com/api/v1/ws?token=` +连接地址: `wss://fc.funmc.cn/api/v1/ws?token=` 消息类型: - `offer` / `answer` / `ice_candidate` - P2P 连接协商 @@ -412,9 +412,9 @@ cargo tauri build --target x86_64-unknown-linux-gnu | 服务 | 地址 | 端口 | |------|------|------| -| API 服务器 | https://funmc.com | 443 | -| 中继节点 - 主线路 | funmc.com | 7900 (UDP/QUIC) | -| 中继节点 - 备用线路 | funmc.com | 7901 (UDP/QUIC) | +| API 服务器 | https://fc.funmc.cn | 443 | +| 中继节点 - 主线路 | fc.funmc.cn | 7900 (UDP/QUIC) | +| 中继节点 - 备用线路 | fc.funmc.cn | 7901 (UDP/QUIC) | ## 🔧 故障排除 @@ -464,6 +464,6 @@ cargo tauri build --target x86_64-unknown-linux-gnu **魔幻方开发** ⭐ -[官网](https://funmc.com) • [文档](https://docs.funmc.com) • [反馈](https://github.com/mofangfang/funmc/issues) +[官网](https://fc.funmc.cn) • [文档](https://fc.funmc.cn/docs) • [反馈](https://gt.funmc.cn/xiaobai/FunConnect/issues) diff --git a/client/migrations/sqlite/20240101000001_local_data.sql b/client/migrations/sqlite/20240101000001_local_data.sql index 2e18dea..abfe81d 100644 --- a/client/migrations/sqlite/20240101000001_local_data.sql +++ b/client/migrations/sqlite/20240101000001_local_data.sql @@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS user_session ( avatar_seed TEXT NOT NULL, access_token TEXT NOT NULL, refresh_token TEXT NOT NULL, - server_url TEXT NOT NULL DEFAULT 'https://funmc.com', + server_url TEXT NOT NULL DEFAULT 'https://fc.funmc.cn', created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now')) ); diff --git a/client/src/config.rs b/client/src/config.rs index 51311ad..aa0e8b3 100644 --- a/client/src/config.rs +++ b/client/src/config.rs @@ -4,8 +4,8 @@ pub const APP_NAME: &str = "FunMC"; pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION"); pub const APP_AUTHOR: &str = "魔幻方"; -pub const DEFAULT_API_SERVER: &str = "https://funmc.com"; -pub const DEFAULT_RELAY_HOST: &str = "funmc.com"; +pub const DEFAULT_API_SERVER: &str = "https://fc.funmc.cn"; +pub const DEFAULT_RELAY_HOST: &str = "fc.funmc.cn"; pub const DEFAULT_RELAY_PORT: u16 = 7900; pub const BACKUP_RELAY_PORT: u16 = 7901; diff --git a/client/ui/src/pages/ServerSetup.tsx b/client/ui/src/pages/ServerSetup.tsx index 298e925..e98f852 100644 --- a/client/ui/src/pages/ServerSetup.tsx +++ b/client/ui/src/pages/ServerSetup.tsx @@ -86,7 +86,7 @@ export default function ServerSetupPage() { type="text" value={serverUrl} onChange={(e) => setServerUrl(e.target.value)} - placeholder="例如: funmc.com:3000 或 192.168.1.100:3000" + placeholder="例如: fc.funmc.cn:3000 或 192.168.1.100:3000" className="w-full px-4 py-3 bg-gray-700/50 border border-gray-600 rounded-xl text-white placeholder-gray-500 focus:outline-none focus:border-green-500 transition-colors" onKeyDown={(e) => e.key === 'Enter' && handleManualConnect()} /> diff --git a/client/ui/src/pages/Settings.tsx b/client/ui/src/pages/Settings.tsx index 37765ae..551951c 100644 --- a/client/ui/src/pages/Settings.tsx +++ b/client/ui/src/pages/Settings.tsx @@ -272,7 +272,7 @@ export default function SettingsPage() {
官网 - funmc.com + fc.funmc.cn
框架 diff --git a/deploy.sh b/deploy.sh index 26ce693..17d29c4 100644 --- a/deploy.sh +++ b/deploy.sh @@ -3,7 +3,7 @@ # FunMC 一键 Docker 部署脚本 # # 用法: -# curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/deploy.sh | bash +# curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/deploy.sh | bash # 或 # ./deploy.sh # @@ -47,10 +47,10 @@ cd "$INSTALL_DIR" # 下载文件 (如果不存在) if [ ! -f "docker-compose.yml" ]; then echo -e "${YELLOW}下载配置文件...${NC}" - curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/docker-compose.yml -o docker-compose.yml - curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/Dockerfile.server -o Dockerfile.server - curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/Dockerfile.relay -o Dockerfile.relay - curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/.env.example -o .env.example + curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/docker-compose.yml -o docker-compose.yml + curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/Dockerfile.server -o Dockerfile.server + curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/Dockerfile.relay -o Dockerfile.relay + curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/.env.example -o .env.example fi # 生成配置 diff --git a/deploy/funmc-relay.service b/deploy/funmc-relay.service index 5aff38c..dac7e01 100644 --- a/deploy/funmc-relay.service +++ b/deploy/funmc-relay.service @@ -1,6 +1,6 @@ [Unit] Description=FunMC Relay Server - QUIC Relay for Minecraft Traffic -Documentation=https://github.com/mofangfang/funmc +Documentation=https://gt.funmc.cn/xiaobai/FunConnect After=network.target [Service] diff --git a/deploy/funmc-server.service b/deploy/funmc-server.service index efd284f..cb07bd4 100644 --- a/deploy/funmc-server.service +++ b/deploy/funmc-server.service @@ -1,6 +1,6 @@ [Unit] Description=FunMC Main Server - Minecraft Multiplayer Assistant API -Documentation=https://github.com/mofangfang/funmc +Documentation=https://gt.funmc.cn/xiaobai/FunConnect After=network.target postgresql.service Requires=postgresql.service diff --git a/docker/nginx.conf b/docker/nginx.conf index 6ccaf28..2ae68f1 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -9,7 +9,7 @@ http { server { listen 80; - server_name funmc.com www.funmc.com; + server_name fc.funmc.cn www.fc.funmc.cn; location / { return 301 https://$server_name$request_uri; @@ -18,7 +18,7 @@ http { server { listen 443 ssl http2; - server_name funmc.com www.funmc.com; + server_name fc.funmc.cn www.fc.funmc.cn; ssl_certificate /etc/nginx/ssl/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/privkey.pem; diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 1281caf..da24454 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -53,13 +53,13 @@ sudo apt install docker-compose-plugin ```bash # 克隆仓库 -git clone https://github.com/mofangfang/funmc.git -cd funmc +git clone https://gt.funmc.cn/xiaobai/FunConnect.git +cd FunConnect # 或者只下载 Docker 配置 mkdir funmc && cd funmc -curl -O https://raw.githubusercontent.com/mofangfang/funmc/main/docker/docker-compose.yml -curl -O https://raw.githubusercontent.com/mofangfang/funmc/main/.env.example +curl -O https://gt.funmc.cn/xiaobai/FunConnect/raw/main/docker-compose.yml +curl -O https://gt.funmc.cn/xiaobai/FunConnect/raw/main/.env.example ``` ### 3. 配置环境变量 @@ -198,8 +198,8 @@ sudo systemctl restart postgresql ```bash # 克隆仓库 -git clone https://github.com/mofangfang/funmc.git -cd funmc +git clone https://gt.funmc.cn/xiaobai/FunConnect.git +cd FunConnect # 编译主服务器 cargo build --release -p funmc-server @@ -565,9 +565,9 @@ Error: connection timed out 如有问题,请通过以下方式获取帮助: -- GitHub Issues: https://github.com/mofangfang/funmc/issues -- 官方文档: https://docs.funmc.com -- 邮箱: support@funmc.com +- 项目 Issues: https://gt.funmc.cn/xiaobai/FunConnect/issues +- 官方文档: https://fc.funmc.cn/docs +- 邮箱: support@fc.funmc.cn --- diff --git a/docs/LAN_TEST.md b/docs/LAN_TEST.md index c63766c..b77a8cf 100644 --- a/docs/LAN_TEST.md +++ b/docs/LAN_TEST.md @@ -27,8 +27,8 @@ ```bash # 1. 克隆项目 -git clone https://github.com/mofangfang/funmc.git -cd funmc +git clone https://gt.funmc.cn/xiaobai/FunConnect.git +cd FunConnect # 2. 启动数据库 docker run -d --name funmc-db \ @@ -301,8 +301,8 @@ ____________________________________________ 如测试中遇到问题,请通过以下方式反馈: -- GitHub Issues: https://github.com/mofangfang/funmc/issues -- 邮箱: support@funmc.com +- 项目 Issues: https://gt.funmc.cn/xiaobai/FunConnect/issues +- 邮箱: support@fc.funmc.cn --- diff --git a/docs/NO_PUBLIC_IP.md b/docs/NO_PUBLIC_IP.md index e02d308..04d2bac 100644 --- a/docs/NO_PUBLIC_IP.md +++ b/docs/NO_PUBLIC_IP.md @@ -8,7 +8,7 @@ ```bash # 在云服务器上一键部署 -curl -fsSL https://raw.githubusercontent.com/mofangfang/funmc/main/deploy.sh | bash +curl -fsSL https://gt.funmc.cn/xiaobai/FunConnect/raw/main/deploy.sh | bash ``` 优点: diff --git a/install.ps1 b/install.ps1 index 3be0e10..3a79b40 100644 --- a/install.ps1 +++ b/install.ps1 @@ -1,6 +1,6 @@ # # FunMC 一键部署脚本 (Windows) -# 用法: irm funmc.com/install.ps1 | iex +# 用法: irm fc.funmc.cn/install.ps1 | iex # $ErrorActionPreference = "Stop" @@ -145,7 +145,7 @@ function Build-FunMC { Set-Location $srcDir git pull } else { - git clone https://github.com/mofangfang/funmc.git $srcDir + git clone https://gt.funmc.cn/xiaobai/FunConnect.git $srcDir Set-Location $srcDir } diff --git a/install.sh b/install.sh index 4ce3794..cc595c2 100644 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash # # FunMC 一键部署脚本 -# 用法: curl -fsSL https://funmc.com/install.sh | bash +# 用法: curl -fsSL https://fc.funmc.cn/install.sh | bash # set -e @@ -138,7 +138,7 @@ build_funmc() { cd $INSTALL_DIR/src git pull else - git clone https://github.com/mofangfang/funmc.git $INSTALL_DIR/src + git clone https://gt.funmc.cn/xiaobai/FunConnect.git $INSTALL_DIR/src cd $INSTALL_DIR/src fi diff --git a/relay-server/Cargo.toml b/relay-server/Cargo.toml index 84d9048..77a8a3c 100644 --- a/relay-server/Cargo.toml +++ b/relay-server/Cargo.toml @@ -3,7 +3,7 @@ name = "funmc-relay-server" version = "0.1.0" edition = "2021" description = "FunMC 中继服务端 - 为 Minecraft 玩家提供网络中继服务" -authors = ["魔幻方 "] +authors = ["魔幻方 "] [[bin]] name = "relay-server" diff --git a/relay-server/src/main.rs b/relay-server/src/main.rs index 23c7f28..d7128ff 100644 --- a/relay-server/src/main.rs +++ b/relay-server/src/main.rs @@ -113,7 +113,7 @@ async fn run_ping_responder(addr: SocketAddr) -> Result<()> { } fn build_server_config() -> Result { - let CertifiedKey { cert, key_pair } = generate_simple_self_signed(vec!["funmc.com".into()]) + let CertifiedKey { cert, key_pair } = generate_simple_self_signed(vec!["fc.funmc.cn".into()]) .context("生成自签名证书失败")?; let cert_der = CertificateDer::from(cert.der().to_vec()); diff --git a/scripts/build-client.ps1 b/scripts/build-client.ps1 index 352f51a..ffaf47d 100644 --- a/scripts/build-client.ps1 +++ b/scripts/build-client.ps1 @@ -3,7 +3,7 @@ # 用法: .\scripts\build-client.ps1 -Platform <平台> -ServerUrl <服务器URL> # # 示例: -# .\scripts\build-client.ps1 -Platform all -ServerUrl "http://funmc.com:3000" +# .\scripts\build-client.ps1 -Platform all -ServerUrl "http://fc.funmc.cn:3000" # .\scripts\build-client.ps1 -Platform windows -ServerUrl "http://192.168.1.100:3000" # diff --git a/scripts/build-client.sh b/scripts/build-client.sh index 96032a0..5f3bd63 100644 --- a/scripts/build-client.sh +++ b/scripts/build-client.sh @@ -4,7 +4,7 @@ # 用法: ./scripts/build-client.sh [平台] [服务器URL] # # 示例: -# ./scripts/build-client.sh all http://funmc.com:3000 +# ./scripts/build-client.sh all http://fc.funmc.cn:3000 # ./scripts/build-client.sh windows http://192.168.1.100:3000 # ./scripts/build-client.sh macos-arm64 https://mc.example.com # diff --git a/server/migrations/20240101000002_relay_nodes.sql b/server/migrations/20240101000002_relay_nodes.sql index c698210..7506e21 100644 --- a/server/migrations/20240101000002_relay_nodes.sql +++ b/server/migrations/20240101000002_relay_nodes.sql @@ -13,5 +13,5 @@ CREATE TABLE relay_nodes ( -- Seed with official relay nodes INSERT INTO relay_nodes (name, url, region, priority) VALUES - ('官方节点 - 主线路', 'funmc.com:7900', 'auto', 100), - ('官方节点 - 备用线路', 'funmc.com:7901', 'auto', 50); + ('官方节点 - 主线路', 'fc.funmc.cn:7900', 'auto', 100), + ('官方节点 - 备用线路', 'fc.funmc.cn:7901', 'auto', 50);