From 55fd1a07a427fc36d902a34a254f9e737992a2ff Mon Sep 17 00:00:00 2001 From: zhangkaihuai <1942223609@qq.com> Date: Mon, 4 Mar 2024 23:06:54 +0800 Subject: [PATCH] =?UTF-8?q?config:=20drone.yml=20nginx.conf=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 6 +++--- nginx.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index ae42048..5606aa1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: fateverse-vue +name: mosr-web platform: os: linux arch: arm64 @@ -71,12 +71,12 @@ steps: path: /app/config # 将kubectl 配置文件挂载出来 commands: # 定义在Docker容器中执行的shell命令 # 将deployment中定义的变量替换为drone中的内置变量 - - kubectl apply -f deployment.yml -n fateverse --kubeconfig=/app/config/base-taishan-kubectl.yml + - kubectl apply -f deployment.yml -n mosr --kubeconfig=/app/config/base-taishan-kubectl.yml volumes: - name: cache host: - path: /home/npm/cache + path: /home/npm/mosr-web - name: config # k8s对接的配置文件 host: path: /home/kubect diff --git a/nginx.conf b/nginx.conf index 99fe18a..899dd17 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,7 +30,7 @@ http { listen [::]:80; location /api { - proxy_pass http://gateway.fateverse.svc.cluster.local:8080; + proxy_pass http://gateway.mosr.svc.cluster.local:8080; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $server_port;