server { listen 80; server_name localhost; location /api { proxy_pass http://localhost:3000; } location / { proxy_pass http://localhost:3001; } }