部署脚本

This commit is contained in:
wanghai
2026-07-20 13:46:08 +08:00
parent ba4d74a23f
commit 5cc55f7f03
6 changed files with 541 additions and 162 deletions

View File

@@ -30,6 +30,7 @@ http {
fastcgi_temp_path /var/lib/nginx/tmp/fastcgi;
uwsgi_temp_path /var/lib/nginx/tmp/uwsgi;
scgi_temp_path /var/lib/nginx/tmp/scgi;
resolver 127.0.0.11 valid=10s ipv6=off;
gzip on;
gzip_vary on;
@@ -172,7 +173,8 @@ http {
# 代理到独立的 Web 前端 Nuxt 服务监听3000端口
location / {
proxy_pass http://ecshopx-web-frontend:3000;
set $web_frontend http://ecshopx-web-frontend:3000;
proxy_pass $web_frontend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';