server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location /assets/ { expires 30d; add_header Cache-Control "public"; } location /fonts/ { expires 365d; add_header Cache-Control "public, immutable"; } location ~* \.apk$ { default_type application/vnd.android.package-archive; expires -1; add_header Cache-Control "no-cache"; } location / { try_files $uri $uri/ /index.html; } error_page 404 /index.html; }