优化
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user