fix: replace localhost with 127.0.0.1 and auto-detect server IP

- Install script now auto-detects server IP for remote deployments
- Changed all localhost:3000 references to 127.0.0.1:3000 for local access
- Updated README (EN/ZH) and frontend translations
This commit is contained in:
tinkle-community
2025-12-14 22:30:06 +08:00
parent 1785184481
commit da1d905a31
4 changed files with 36 additions and 15 deletions

View File

@@ -104,7 +104,7 @@
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
```
完成!打开浏览器访问 **http://localhost:3000**
完成!打开浏览器访问 **http://127.0.0.1:3000**
### Docker Compose (手动)
@@ -114,7 +114,7 @@ curl -O https://raw.githubusercontent.com/NoFxAiOS/nofx/main/docker-compose.prod
docker compose -f docker-compose.prod.yml up -d
```
访问 Web 界面: **http://localhost:3000**
访问 Web 界面: **http://127.0.0.1:3000**
```bash
# 管理命令
@@ -165,7 +165,7 @@ cd web
npm run dev
```
访问 Web 界面: **http://localhost:3000**
访问 Web 界面: **http://127.0.0.1:3000**
---
@@ -185,7 +185,7 @@ npm run dev
docker compose -f docker-compose.prod.yml up -d
```
3. **访问**:在浏览器打开 **http://localhost:3000**
3. **访问**:在浏览器打开 **http://127.0.0.1:3000**
### 方法二WSL2适合开发
@@ -235,7 +235,7 @@ npm run dev
cd web && npm install && npm run dev
```
5. **访问**:在 Windows 浏览器打开 **http://localhost:3000**
5. **访问**:在 Windows 浏览器打开 **http://127.0.0.1:3000**
### 方法三WSL2 + Docker两全其美