server { listen 3000; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } # Proxy to backends so the SPA can hit /api/ingest, /api/bulker, /api/rotor. location /api/ingest/ { rewrite ^/api/ingest/(.*)$ /$1 break; proxy_pass http://ingest:3049; } location /api/bulker/ { rewrite ^/api/bulker/(.*)$ /$1 break; proxy_pass http://bulker:3042; } location /api/rotor/ { rewrite ^/api/rotor/(.*)$ /$1 break; proxy_pass http://rotor:3401; } }