server { listen 80; listen [::]:80; root /config/www; index index.html; location / { try_files $uri $uri/ =404; } # Custom error pages error_page 404 /404.html; # Enable gzip compression gzip on; gzip_types text/plain text/css application/javascript application/json image/svg+xml; gzip_min_length 1000; # Set cache headers for static assets location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 30d; add_header Cache-Control "public, no-transform"; } }