server { listen 8080; root /usr/share/nginx/html; index index.html; location /api/ { proxy_pass http://parts-api.infrastructure.svc.cluster.local:3001/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location / { try_files $uri $uri/ /index.html; } }