Commits
2026-09-15
refactor: 🧹 one source for the deployment defaults - the defaults (PORT, HOST, BACKEND_ORIGIN) are written once, in the image ENV block in Containerfile; server.ts now refuses to boot without them instead of carrying its own copies, so a stripped image fails loudly - compose healthcheck asks the container for PORT; the deploy gate and the verify step read the running container for the port instead of parsing a second copy out of the operator file - drop deploy/Containerfile.runtime: CI now builds the repo Containerfile, so there is no CI-only twin whose base image or ENV can drift - docs follow: knobs paragraph, env example and unit header describe overrides of the image defaults rather than fallbacks scattered across filesAhmet Kaan Gümüş · 6fd81aa
refactor: 🧹 one source for the deployment defaults - the defaults (PORT, HOST, BACKEND_ORIGIN) are written once, in the image ENV block in Containerfile; server.ts now refuses to boot without them instead of carrying its own copies, so a stripped image fails loudly - compose healthcheck asks the container for PORT; the deploy gate and the verify step read the running container for the port instead of parsing a second copy out of the operator file - drop deploy/Containerfile.runtime: CI now builds the repo Containerfile, so there is no CI-only twin whose base image or ENV can drift - docs follow: knobs paragraph, env example and unit header describe overrides of the image defaults rather than fallbacks scattered across files
2026-07-23
✨ feat(container): serve the SPA with Bun, drop nginxAhmet Kaan Gümüş · 4f9c8ec
✨ feat(container): serve the SPA with Bun, drop nginx Replace the nginx serving stage with a small Bun.serve script (server.ts) that serves the built dist/ and reverse-proxies /api/* to the backend — both plain HTTP and the exam-room WebSocket (forwarding the session cookie), stripping the /api prefix exactly as nginx did. Same-origin is preserved, so no CORS/cookie changes. (nginx.conf + its whitelist test were removed in the prior commit.) Multi-stage Containerfile: bun build -> bun:1-slim runtime running server.ts (no node_modules — server.ts uses only Bun built-ins). BACKEND_ORIGIN points the proxy at the backend on the compose network; healthcheck moves to a bun one-liner (slim image has no curl). Verified end-to-end under podman compose: SPA + asset caching + /api proxy + a live exam WS state frame round-tripping through the bridge on :5173.