init: demo-frontend with CI/CD template
Some checks failed
Build & Deploy Frontend / build (push) Has been cancelled
Build & Deploy Frontend / deploy (push) Has been cancelled

This commit is contained in:
joe
2026-07-19 02:13:20 +08:00
committed by Joe
parent ed58df3cfb
commit fe1c93eacc
6 changed files with 242 additions and 0 deletions

23
nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
# 静态资源缓存
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# 健康检查
location /healthz {
access_log off;
return 200 "ok\n";
}
}