CI 测试
This commit is contained in:
parent
bc368d57a1
commit
8578e6146f
|
@ -24,8 +24,6 @@ build-job:
|
|||
- npm i -g pnpm && pnpm i && pnpm build
|
||||
# 打印编译完成信息
|
||||
- echo "Compile complete."
|
||||
# 创建文件夹
|
||||
- mkdir docker/dist
|
||||
# 从Docker Hub拉取OpenJDK基础镜像
|
||||
- docker pull nginx:1.27.3
|
||||
# 打印拉取完成信息
|
||||
|
|
|
@ -16,13 +16,13 @@ server {
|
|||
}
|
||||
|
||||
# 后端跨域请求
|
||||
location ~/api/ {
|
||||
proxy_pass http://172.17.0.1:8000;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
# location ~/api/ {
|
||||
# proxy_pass http://172.17.0.1:8000;
|
||||
# proxy_set_header Host $http_host;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# }
|
||||
|
||||
error_page 404 404.html;
|
||||
|
||||
|
|
Loading…
Reference in New Issue