refactor: 安装向导移除「监听端口」字段
端口由启动方式(PM2 项目端口 / compose / API_PORT 环境变量)决定,默认 3000, 向导填的值会被进程环境覆盖,属误导项;写 .env 的 API_PORT 改取 process.env.API_PORT。 反代 HTTPS/域名仍由 Nginx/宝塔/1Panel 配置,与安装页无关。
This commit is contained in:
@@ -158,18 +158,11 @@ export class InstallRequestDto {
|
||||
appName!: string;
|
||||
|
||||
// 对外访问地址(域名,可含端口);后台、客户端、短链、二维码均基于此推导。
|
||||
// 服务监听端口不在此处填写:由启动方式(PM2 项目端口 / compose / API_PORT 环境变量)决定,默认 3000。
|
||||
@ApiProperty()
|
||||
@IsUrl({ require_tld: false })
|
||||
baseUrl!: string;
|
||||
|
||||
// 服务监听端口(默认 3000),由前置 Nginx/宝塔/1Panel 反代指向该端口。
|
||||
@ApiPropertyOptional({ default: 3000 })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
port?: number;
|
||||
|
||||
@ApiProperty()
|
||||
@ValidateNested()
|
||||
@Type(() => InstallMysqlDto)
|
||||
|
||||
Reference in New Issue
Block a user