config: drone.yml nginx.conf 配置文件修改
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: fateverse-vue
|
name: mosr-web
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
@@ -71,12 +71,12 @@ steps:
|
|||||||
path: /app/config # 将kubectl 配置文件挂载出来
|
path: /app/config # 将kubectl 配置文件挂载出来
|
||||||
commands: # 定义在Docker容器中执行的shell命令
|
commands: # 定义在Docker容器中执行的shell命令
|
||||||
# 将deployment中定义的变量替换为drone中的内置变量
|
# 将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:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /home/npm/cache
|
path: /home/npm/mosr-web
|
||||||
- name: config # k8s对接的配置文件
|
- name: config # k8s对接的配置文件
|
||||||
host:
|
host:
|
||||||
path: /home/kubect
|
path: /home/kubect
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ http {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
location /api {
|
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-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-Port $server_port;
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
|||||||
Reference in New Issue
Block a user