clouddreamai-cicd-setup 1.5.43 → 1.5.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clouddreamai-cicd-setup",
3
- "version": "1.5.43",
3
+ "version": "1.5.44",
4
4
  "description": "CloudDreamAI GitLab CI/CD 自动配置工具 - 支持 NestJS/Vue/React 项目的一键 CI/CD 配置",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -385,10 +385,10 @@ create_database() {
385
385
  fi
386
386
 
387
387
  if [ -f "$PG_HBA" ]; then
388
- # 检查是否已允许 Docker 网络连接
389
- if ! grep -q "172.17.0.0/16" "$PG_HBA"; then
390
- echo "配置 PostgreSQL 允许 Docker 容器连接..."
391
- echo "host all all 172.17.0.0/16 md5" >> "$PG_HBA"
388
+ # 允许所有 IP 连接(Docker 网段可能是 172.17.x.x、172.26.x.x 等,直接放开最简单)
389
+ if ! grep -q "0.0.0.0/0" "$PG_HBA"; then
390
+ echo "配置 PostgreSQL 允许外部连接..."
391
+ echo "host all all 0.0.0.0/0 md5" >> "$PG_HBA"
392
392
  PG_RESTART_NEEDED=true
393
393
  fi
394
394
  fi