config: drone.yml nginx.conf 配置文件修改
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user