litellmGUI / frontend /nginx.conf
github-actions[bot]
deploy: 98a3954 — 更新 nginx.conf
5c043fc
raw
history blame contribute delete
511 Bytes
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# SPA 路由支持
location / {
try_files $uri $uri/ /index.html;
}
# 静态资源长缓存
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# HTML 不缓存
location = /index.html {
add_header Cache-Control "no-cache, must-revalidate";
expires 0;
}
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;
}