Files
panel-remate-app/docker/nginx.conf

31 lines
565 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# SPA — React Router
location / {
try_files $uri $uri/ /index.html;
}
# Cache de assets con hash de Vite
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
gzip on;
gzip_vary on;
gzip_min_length 256;
gzip_types
text/plain
text/css
application/json
application/javascript
text/xml
application/xml
image/svg+xml;
}