This commit is contained in:
2026-09-30 14:27:37 +08:00
parent 8398d5ead9
commit 244208c690
12 changed files with 62 additions and 33 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 dist/build/h5/ /srv/pda-h5/pda-overseas/
COPY dist/build/h5/ /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-overseas/"]
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-overseas { return 302 /pda-overseas/; }
location ^~ /pda-overseas/ {
location / {
index index.html;
try_files $uri $uri/ =404;
add_header Cache-Control "no-store" always;
}
location / { return 404; }
}