server { server_name my-app; index index.html; root /path/to/app; location / { try_files $uri $uri/ /index.html; } }