# The demo upstream in docker-compose.yml. Deliberately close to nginx's own # default so the compose file still demonstrates the honest case: an application # the edge knows nothing about, where a missing page is a 404 and the edge has no # opinion about it. # # One addition: /boom answers 502. Not because the demo is broken, but because # the "server errors alert, they never ban" rule is the most important safety # property in this project — a bad deploy must not lock out the site's own # visitors — and until now it was proven only in-process, against a fake # upstream. scripts/compose-smoke.sh hits /boom three times from one source and # asserts the source is still not banned and that an alert exists. In the shipped # image, over a socket. # # Nothing in this file is used by the edge. It is the upstream's own config. server { listen 80; server_name _; location / { root /usr/share/nginx/html; index index.html; } # 502 on purpose, for the gate. A real 502 is the upstream failing; nginx # returning one directly is the same status on the same wire, which is all # the edge's classifier sees. location = /boom { return 502; } }