diff --git a/vue/apps/web-antd/.env.development b/vue/apps/web-antd/.env.development index 43678fa..7227ff5 100644 --- a/vue/apps/web-antd/.env.development +++ b/vue/apps/web-antd/.env.development @@ -1,11 +1,11 @@ # 端口号 -VITE_PORT=8090 +VITE_PORT=8091 VITE_BASE=/ # 接口地址 -VITE_GLOB_API_URL=http://localhost:8089/api -VITE_GLOB_API_URL_PY=http://localhost:13011/api +VITE_GLOB_API_URL=http://localhost:8089/ +VITE_GLOB_API_URL_PY=http://localhost:13011/ # 是否开启 Nitro Mock服务,true 为开启,false 为关闭 VITE_NITRO_MOCK=false diff --git a/vue/apps/web-antd/.env.production b/vue/apps/web-antd/.env.production index 3499670..436f322 100644 --- a/vue/apps/web-antd/.env.production +++ b/vue/apps/web-antd/.env.production @@ -1,8 +1,8 @@ VITE_BASE=/ # 接口地址 -VITE_GLOB_API_URL=http://s1.ronsunny.cn:8089/api -VITE_GLOB_API_URL_PY=http://s1.ronsunny.cn:13011/api +VITE_GLOB_API_URL=http://s1.ronsunny.cn:8090/api +VITE_GLOB_API_URL_PY=http://s1.ronsunny.cn:8090/ai # 是否开启压缩,可以设置为 none, brotli, gzip VITE_COMPRESS=none diff --git a/vue/apps/web-antd/src/views/cv/sca/index.vue b/vue/apps/web-antd/src/views/cv/sca/index.vue index 506c09a..b567184 100644 --- a/vue/apps/web-antd/src/views/cv/sca/index.vue +++ b/vue/apps/web-antd/src/views/cv/sca/index.vue @@ -158,10 +158,10 @@ onActivated(() => { diff --git a/vue/scripts/deploy/Dockerfile b/vue/scripts/deploy/Dockerfile index 94953cf..8625f2b 100644 --- a/vue/scripts/deploy/Dockerfile +++ b/vue/scripts/deploy/Dockerfile @@ -9,6 +9,6 @@ COPY apps/web-antd/dist /usr/share/nginx/html # 拷贝 nginx 配置 COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf -EXPOSE 8090 +#EXPOSE 8091 因为使用kong做网关 可以直接使用ce-vue:8091访问 所以这里可以不暴露给内网 CMD ["nginx", "-g", "daemon off;"] diff --git a/vue/scripts/deploy/nginx.conf b/vue/scripts/deploy/nginx.conf index 29b4f4a..ecb9061 100644 --- a/vue/scripts/deploy/nginx.conf +++ b/vue/scripts/deploy/nginx.conf @@ -47,7 +47,7 @@ http { # gzip_vary on; server { - listen 8090; + listen 8091; server_name localhost; location / {