Files
Commander-Deck-App-backup/frontend/nginx.conf
T

21 lines
436 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
# Static assets with long cache
location ~* \.(js|css|woff2?|png|jpg|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Gzip
gzip on;
gzip_types text/plain text/css application/javascript application/json;
}