config: drone.yml nginx.conf 配置文件修改

This commit is contained in:
zhangkaihuai
2024-03-04 23:06:54 +08:00
parent e44edd71c0
commit 55fd1a07a4
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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;