server{ listen 80; server_name _; location / { root /srv; index index.html; try_files $uri $uri/ /index.html; } location /api { proxy_pass ; } }