server { listen 80 default_server; server_name _; root /usr/share/nginx/html; index index.html; charset utf-8; charset_types text/plain text/css application/javascript text/html; location = / { try_files /index.html =404; add_header Cache-Control "no-cache, must-revalidate" always; } location /static/ { expires 5m; add_header Cache-Control "public, max-age=300" always; } location / { try_files $uri $uri/ /index.html; } }