clouddreamai-cicd-setup 1.5.13 → 1.5.14

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.13",
3
+ "version": "1.5.14",
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",
@@ -3,7 +3,7 @@ services:
3
3
  image: ${DOCKER_IMAGE:-{{APP_NAME}}:latest}
4
4
  container_name: {{APP_NAME}}
5
5
  ports:
6
- - "${APP_PORT}:${APP_PORT}"
6
+ - "${APP_PORT}:80" # 宿主机端口:容器内Nginx端口(固定80)
7
7
  restart: unless-stopped
8
8
  networks:
9
9
  - app-network
@@ -109,12 +109,7 @@ configure_ssl() {
109
109
  # 安装 acme.sh(如果没有)
110
110
  if [ ! -f ~/.acme.sh/acme.sh ]; then
111
111
  echo "安装 acme.sh..."
112
- # 使用 gitee 镜像加速(国内网络友好)
113
- git clone --depth 1 https://gitee.com/neilpang/acme.sh.git /tmp/acme.sh 2>/dev/null || \
114
- git clone --depth 1 https://github.com/acmesh-official/acme.sh.git /tmp/acme.sh
115
- cd /tmp/acme.sh && ./acme.sh --install -m $EMAIL
116
- cd - > /dev/null
117
- rm -rf /tmp/acme.sh
112
+ curl https://get.acme.sh | sh -s email=$EMAIL
118
113
  source ~/.bashrc 2>/dev/null || true
119
114
  fi
120
115