chore: 将 web 端口由 5173 调整为 5273

This commit is contained in:
caoxiaozhu
2026-06-17 14:37:50 +08:00
parent 0d525fa64c
commit 09a66c72cb
5 changed files with 10 additions and 10 deletions

6
.env
View File

@@ -14,9 +14,9 @@ VITE_ADMIN_EMAIL='admin@admin.com'
# Admin login credentials are stored separately under server/.secrets/ # Admin login credentials are stored separately under server/.secrets/
WEB_HOST=10.10.10.122 WEB_HOST=10.10.10.122
WEB_PORT=5173 WEB_PORT=5273
VITE_WEB_HOST=10.10.10.122 VITE_WEB_HOST=10.10.10.122
VITE_WEB_PORT=5173 VITE_WEB_PORT=5273
SERVER_HOST=0.0.0.0 SERVER_HOST=0.0.0.0
SERVER_PORT=8000 SERVER_PORT=8000
@@ -48,4 +48,4 @@ SQLALCHEMY_ECHO=false
REDIS_URL= REDIS_URL=
VITE_REDIS_URL= VITE_REDIS_URL=
CORS_ORIGINS='["http://10.10.10.122:5173"]' CORS_ORIGINS='["http://10.10.10.122:5273"]'

View File

@@ -14,9 +14,9 @@ VITE_ADMIN_EMAIL=
# Admin login credentials are stored separately under server/.secrets/ # Admin login credentials are stored separately under server/.secrets/
WEB_HOST=0.0.0.0 WEB_HOST=0.0.0.0
WEB_PORT=5173 WEB_PORT=5273
VITE_WEB_HOST=0.0.0.0 VITE_WEB_HOST=0.0.0.0
VITE_WEB_PORT=5173 VITE_WEB_PORT=5273
SERVER_HOST=0.0.0.0 SERVER_HOST=0.0.0.0
SERVER_PORT=8000 SERVER_PORT=8000
@@ -52,4 +52,4 @@ OCR_DEVICE=
OCR_TIMEOUT_SECONDS=180 OCR_TIMEOUT_SECONDS=180
OCR_MAX_CONCURRENT_WORKERS=1 OCR_MAX_CONCURRENT_WORKERS=1
CORS_ORIGINS='["http://127.0.0.1:5173","http://localhost:5173","http://0.0.0.0:5173"]' CORS_ORIGINS='["http://127.0.0.1:5273","http://localhost:5273","http://0.0.0.0:5273"]'

View File

@@ -20,7 +20,7 @@ services:
QDRANT_URL: "http://qdrant:6333" QDRANT_URL: "http://qdrant:6333"
LIGHTRAG_WORKSPACE: "x_financial_knowledge" LIGHTRAG_WORKSPACE: "x_financial_knowledge"
ports: ports:
- "${WEB_PORT:-5173}:${WEB_PORT:-5173}" - "${WEB_PORT:-5273}:${WEB_PORT:-5273}"
- "${SERVER_PORT:-8000}:${SERVER_PORT:-8000}" - "${SERVER_PORT:-8000}:${SERVER_PORT:-8000}"
- "2223:22" - "2223:22"
volumes: volumes:
@@ -59,7 +59,7 @@ services:
cd /app && cd /app &&
./start.sh all ./start.sh all
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:${WEB_PORT:-5173}/ >/dev/null || exit 1"] test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:${WEB_PORT:-5273}/ >/dev/null || exit 1"]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 10 retries: 10

View File

@@ -14,7 +14,7 @@ docker compose up -d
Open: Open:
```text ```text
http://<your-linux-host>:5173 http://<your-linux-host>:5273
``` ```
## Container Layout ## Container Layout

View File

@@ -38,7 +38,7 @@ class Settings(BaseSettings):
admin_email: str = Field(default="", alias="ADMIN_EMAIL") admin_email: str = Field(default="", alias="ADMIN_EMAIL")
web_host: str = Field(default="0.0.0.0", alias="WEB_HOST") web_host: str = Field(default="0.0.0.0", alias="WEB_HOST")
web_port: int = Field(default=5173, alias="WEB_PORT") web_port: int = Field(default=5273, alias="WEB_PORT")
app_host: str = Field(default="0.0.0.0", alias="SERVER_HOST") app_host: str = Field(default="0.0.0.0", alias="SERVER_HOST")
app_port: int = Field(default=8000, alias="SERVER_PORT") app_port: int = Field(default=8000, alias="SERVER_PORT")
server_workers: int = Field(default=1, alias="SERVER_WORKERS") server_workers: int = Field(default=1, alias="SERVER_WORKERS")