This commit is contained in:
2026-09-30 14:27:39 +08:00
parent 707711b3bd
commit 7ba6a24505
8 changed files with 45 additions and 19 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
ARG NGINX_BASE_IMAGE=nginx:1.27-alpine
FROM ${NGINX_BASE_IMAGE}
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY unpackage/dist/build/web/ /srv/pda-h5/pda-domestic/
COPY unpackage/dist/build/web/ /srv/pda-h5/
EXPOSE 80
+1 -1
View File
@@ -12,7 +12,7 @@ services:
expose:
- "80"
healthcheck:
test: ["CMD-SHELL", "wget -qO /dev/null http://127.0.0.1/healthz && wget -qO /dev/null http://127.0.0.1/pda-domestic/"]
test: ["CMD-SHELL", "wget -qO /dev/null http://127.0.0.1/healthz && wget -qO /dev/null http://127.0.0.1/"]
interval: 5s
timeout: 3s
retries: 12
+1 -3
View File
@@ -8,11 +8,9 @@ server {
add_header Cache-Control "no-store" always;
return 200 "ok\n";
}
location = /pda-domestic { return 302 /pda-domestic/; }
location ^~ /pda-domestic/ {
location / {
index index.html;
try_files $uri $uri/ =404;
add_header Cache-Control "no-store" always;
}
location / { return 404; }
}