feat: 更新健康检查和 Nginx 配置
my-v0 / deploy (push) Successful in 24s

This commit is contained in:
2026-08-17 00:36:53 +08:00
parent c61f34e8dc
commit 348a459893
2 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD wget -q --spider http://127.0.0.1:3000/my-v0/ || exit 1
CMD wget -q --spider http://127.0.0.1:3000/ || exit 1
CMD ["nginx", "-g", "daemon off;"]
+1 -6
View File
@@ -4,12 +4,7 @@ server {
root /usr/share/nginx/html;
index index.html;
location = /my-v0 {
return 301 /my-v0/;
}
location /my-v0/ {
rewrite ^/my-v0/(.*)$ /$1 break;
location / {
try_files $uri $uri/ /index.html;
}
}