e71fa6e3ed
- nginx.conf: 移除 /api/ 代理(改由 OpenResty 边缘路由),仅保留 SPA fallback - .gitignore: 排除所有 .env.* (保留 .env.example),防止 .env.production 误提交 Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
259 B
Nginx Configuration File
18 lines
259 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# SPA fallback
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Health check
|
|
location /health {
|
|
return 200 "ok";
|
|
}
|
|
}
|