Files
amb_rag/frontend/nginx.conf
T
2026-09-02 16:32:26 +08:00

19 lines
451 B
Nginx Configuration File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 前端容器内部 nginx —— 负责 SPA 路由回退
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# 关键:所有找不到的路径回退到 index.htmlVue Router history 模式必需)
location / {
try_files $uri $uri/ /index.html;
}
# 静态资源缓存
location /assets/ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}