Hands-on task
The warehouse answers 502
The inventory service is opened through nginx: http://localhost/api/stock — and people get 502 Bad Gateway. nginx itself is running and the config is valid. Find where requests are proxied and why nothing answers there, and fix it so that the response of the inventory app itself comes through the proxy again (its code is in /opt/inventory).
The Site tab shows what nginx serves on port 80: right now it's a 502 page. After the fix, hit Refresh — the inventory JSON should appear.
- nginx
- 502 bad gateway
- proxy_pass
- ss
- background process