fix: change default port to 15555

This commit is contained in:
Mison
2026-03-24 12:15:44 +08:00
parent 1db7642a43
commit 16154bb5ae
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \ PYTHONUNBUFFERED=1 \
# WebUI 默认配置 # WebUI 默认配置
WEBUI_HOST=0.0.0.0 \ WEBUI_HOST=0.0.0.0 \
WEBUI_PORT=1455 \ WEBUI_PORT=15555 \
LOG_LEVEL=info \ LOG_LEVEL=info \
DEBUG=0 DEBUG=0
@@ -30,7 +30,7 @@ RUN pip install --no-cache-dir --upgrade pip \
COPY . . COPY . .
# 暴露端口 # 暴露端口
EXPOSE 1455 EXPOSE 15555
# 启动 WebUI # 启动 WebUI
CMD ["python", "webui.py"] CMD ["python", "webui.py"]
+3 -3
View File
@@ -144,9 +144,9 @@ docker-compose up -d
```bash ```bash
docker run -d \ docker run -d \
-p 1455:1455 \ -p 15555:15555 \
-e WEBUI_HOST=0.0.0.0 \ -e WEBUI_HOST=0.0.0.0 \
-e WEBUI_PORT=1455 \ -e WEBUI_PORT=15555 \
-e WEBUI_ACCESS_PASSWORD=your_secure_password \ -e WEBUI_ACCESS_PASSWORD=your_secure_password \
-v $(pwd)/data:/app/data \ -v $(pwd)/data:/app/data \
--name codex-register \ --name codex-register \
@@ -155,7 +155,7 @@ docker run -d \
环境变量说明: 环境变量说明:
- `WEBUI_HOST`: 监听的主机地址 (默认 `0.0.0.0`) - `WEBUI_HOST`: 监听的主机地址 (默认 `0.0.0.0`)
- `WEBUI_PORT`: 监听的端口 (默认 `1455`) - `WEBUI_PORT`: 监听的端口 (默认 `15555`)
- `WEBUI_ACCESS_PASSWORD`: 设置 Web UI 的访问密码 - `WEBUI_ACCESS_PASSWORD`: 设置 Web UI 的访问密码
- `DEBUG`: 设为 `1``true` 开启调试模式 - `DEBUG`: 设为 `1``true` 开启调试模式
- `LOG_LEVEL`: 日志级别,如 `info`, `debug` - `LOG_LEVEL`: 日志级别,如 `info`, `debug`
+2 -2
View File
@@ -4,10 +4,10 @@ services:
webui: webui:
build: . build: .
ports: ports:
- "1455:1455" - "15555:15555"
environment: environment:
- WEBUI_HOST=0.0.0.0 - WEBUI_HOST=0.0.0.0
- WEBUI_PORT=1455 - WEBUI_PORT=15555
- DEBUG=0 - DEBUG=0
- LOG_LEVEL=info - LOG_LEVEL=info
# 如果需要访问密码,可以在这里取消注释并设置 # 如果需要访问密码,可以在这里取消注释并设置
+1 -1
View File
@@ -56,7 +56,7 @@ APP_DESCRIPTION = "自动注册 OpenAI/Codex CLI 账号的系统"
OAUTH_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann" OAUTH_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann"
OAUTH_AUTH_URL = "https://auth.openai.com/oauth/authorize" OAUTH_AUTH_URL = "https://auth.openai.com/oauth/authorize"
OAUTH_TOKEN_URL = "https://auth.openai.com/oauth/token" OAUTH_TOKEN_URL = "https://auth.openai.com/oauth/token"
OAUTH_REDIRECT_URI = "http://localhost:1455/auth/callback" OAUTH_REDIRECT_URI = "http://localhost:15555/auth/callback"
OAUTH_SCOPE = "openid email profile offline_access" OAUTH_SCOPE = "openid email profile offline_access"
# OpenAI API 端点 # OpenAI API 端点
+2 -2
View File
@@ -136,7 +136,7 @@ SETTING_DEFINITIONS: Dict[str, SettingDefinition] = {
), ),
"openai_redirect_uri": SettingDefinition( "openai_redirect_uri": SettingDefinition(
db_key="openai.redirect_uri", db_key="openai.redirect_uri",
default_value="http://localhost:1455/auth/callback", default_value="http://localhost:15555/auth/callback",
category=SettingCategory.OPENAI, category=SettingCategory.OPENAI,
description="OpenAI OAuth 回调 URI" description="OpenAI OAuth 回调 URI"
), ),
@@ -622,7 +622,7 @@ class Settings(BaseModel):
openai_client_id: str = "app_EMoamEEZ73f0CkXaXp7hrann" openai_client_id: str = "app_EMoamEEZ73f0CkXaXp7hrann"
openai_auth_url: str = "https://auth.openai.com/oauth/authorize" openai_auth_url: str = "https://auth.openai.com/oauth/authorize"
openai_token_url: str = "https://auth.openai.com/oauth/token" openai_token_url: str = "https://auth.openai.com/oauth/token"
openai_redirect_uri: str = "http://localhost:1455/auth/callback" openai_redirect_uri: str = "http://localhost:15555/auth/callback"
openai_scope: str = "openid email profile offline_access" openai_scope: str = "openid email profile offline_access"
# 代理配置 # 代理配置