server { listen 80; server_name _; # Serve the frontend static files root /usr/share/nginx/html; index index.html; # Serve all requests as static files location / { try_files $uri /index.html; } # Logs for debugging (optional) access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; }