Files
prosappweb/nginx.conf
T

24 lines
562 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location = /favicon.ico {
rewrite ^ /favicon.png permanent;
}
# Flutter Web SPA — all routes go to index.html
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
gzip on;
gzip_types text/plain text/css application/json application/javascript text/javascript;
}