server { listen 8080; server_name _; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ $uri/index.html /index.html; } location ~* \.(html|css|js|json|svg|woff2?|png|jpg|jpeg|gif|ico)$ { add_header Cache-Control "public, max-age=3600"; } }