fix:修复端口设置

This commit is contained in:
ZhangYonghao
2026-03-21 20:42:47 +08:00
parent 10d463a55f
commit eaefc318a6
4 changed files with 6 additions and 5 deletions

View File

@@ -195,7 +195,7 @@ NEXT_PUBLIC_API_BASE_URL=http://localhost:8000
| `APP_NAME` | string | `HTML Knowledge API` | 服务名称 | | `APP_NAME` | string | `HTML Knowledge API` | 服务名称 |
| `API_PREFIX` | string | `/api` | 接口前缀 | | `API_PREFIX` | string | `/api` | 接口前缀 |
| `PUBLIC_BASE_URL` | string | `http://localhost:8000` | 对外可访问的服务域名 | | `PUBLIC_BASE_URL` | string | `http://localhost:8000` | 对外可访问的服务域名 |
| `ALLOWED_ORIGINS` | JSON array / string | `["http://localhost:3000"]` | CORS 白名单 | | `ALLOWED_ORIGINS` | JSON array / string | `["*"]` | CORS 白名单 |
| `HTML_STORAGE_DIR` | string | `./data/generated_html` | HTML 文件存储目录 | | `HTML_STORAGE_DIR` | string | `./data/generated_html` | HTML 文件存储目录 |
| `DEFAULT_RETENTION_DAYS` | integer | `7` | 默认保留天数 | | `DEFAULT_RETENTION_DAYS` | integer | `7` | 默认保留天数 |
| `MAX_RETENTION_DAYS` | integer | `30` | 最大允许保留天数 | | `MAX_RETENTION_DAYS` | integer | `30` | 最大允许保留天数 |

View File

@@ -1,7 +1,7 @@
APP_NAME="HTML Knowledge API" APP_NAME="HTML Knowledge API"
API_PREFIX="/api" API_PREFIX="/api"
PUBLIC_BASE_URL="http://localhost:8000" PUBLIC_BASE_URL="http://localhost:8009"
ALLOWED_ORIGINS=["http://localhost:3000"] ALLOWED_ORIGINS=["*"]
HTML_STORAGE_DIR="./data/generated_html" HTML_STORAGE_DIR="./data/generated_html"
DEFAULT_RETENTION_DAYS=7 DEFAULT_RETENTION_DAYS=7
MAX_RETENTION_DAYS=30 MAX_RETENTION_DAYS=30

View File

@@ -1,7 +1,7 @@
APP_NAME="HTML Knowledge API" APP_NAME="HTML Knowledge API"
API_PREFIX="/api" API_PREFIX="/api"
PUBLIC_BASE_URL="http://localhost:8000" PUBLIC_BASE_URL="http://localhost:8009"
ALLOWED_ORIGINS=["http://localhost:3000"] ALLOWED_ORIGINS=["*"]
HTML_STORAGE_DIR="./data/generated_html" HTML_STORAGE_DIR="./data/generated_html"
DEFAULT_RETENTION_DAYS=7 DEFAULT_RETENTION_DAYS=7
MAX_RETENTION_DAYS=30 MAX_RETENTION_DAYS=30

1
frontend/.env.production Normal file
View File

@@ -0,0 +1 @@
NEXT_PUBLIC_API_BASE_URL=http://180.76.245.69:8009