release: freeze demo v1.1.0 2026-10-19
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
This commit is contained in:
@@ -46,6 +46,7 @@ http {
|
||||
# 使用固定容器名,避免后端因跨 compose 网络重连后丢失 service alias。
|
||||
set $backend_upstream "http://danyang-match-backend:8080";
|
||||
set $admin_upstream "http://admin-web:80";
|
||||
set $h5_upstream "http://h5-web:80";
|
||||
|
||||
# Health check for nginx itself
|
||||
location /nginx-health {
|
||||
@@ -99,6 +100,20 @@ http {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# H5 演示端 —— 小程序用户端 + 红娘端的网页版,产物挂在 /h5/ 子路径下
|
||||
# (构建 base=/h5/,见 h5-demo/vite.config.ts)。与 /admin/ 同构:**不剥离**前缀
|
||||
# 转发给 h5-demo 容器,由容器内 nginx(h5-demo/nginx-h5.conf)自行处理 /h5 前缀。
|
||||
location = /h5 {
|
||||
return 301 /h5/;
|
||||
}
|
||||
location /h5/ {
|
||||
proxy_pass $h5_upstream;
|
||||
proxy_set_header Host $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;
|
||||
}
|
||||
|
||||
# 其余未匹配路径(不含 /admin、/api、/ws)统一跳转到管理端入口。
|
||||
# 根路径没有内容,显式跳转以避免"打根路径拿到一个空白/错页"的假成功。
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user