forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to compose.yamlClear filter

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
fix: 🔌 host networking so the proxy reaches the backend on loopback - run the frontend with network_mode: host: a bridge network resolves 127.0.0.1 inside the container, so BACKEND_ORIGIN=http://127.0.0.1:7656 (the backend is published on the host loopback) refused every connection - drop the service ports: mapping and the environment: block — under host networking the app binds the host interface directly, and every knob now arrives through env_file with nothing shadowing it - server.ts binds HOST (default 0.0.0.0): a server sets HOST=127.0.0.1 so the app stays on loopback and the reverse proxy is the only door - docs: env example now ships BACKEND_ORIGIN/HOST/PORT for a co-located stackAhmet Kaan Gümüş · f643e6a
fix: 🔌 host networking so the proxy reaches the backend on loopback
- run the frontend with network_mode: host: a bridge network resolves
  127.0.0.1 inside the container, so BACKEND_ORIGIN=http://127.0.0.1:7656
  (the backend is published on the host loopback) refused every connection
- drop the service ports: mapping and the environment: block — under host
  networking the app binds the host interface directly, and every knob now
  arrives through env_file with nothing shadowing it
- server.ts binds HOST (default 0.0.0.0): a server sets HOST=127.0.0.1 so the
  app stays on loopback and the reverse proxy is the only door
- docs: env example now ships BACKEND_ORIGIN/HOST/PORT for a co-located stack
fix: 🔌 let the env file own BACKEND_ORIGIN - drop BACKEND_ORIGIN from the service environment: — a listed key wins over env_file, so it shadowed the operator file with the compose default on any up that omitted --env-file, which is exactly how a server ended up proxying /api to an address nobody chose - server.ts already defaults to the same public origin, so the laptop path (no env file, no flags) behaves as before while the file is now authoritative - PORT stays interpolated: the published port and the container listener are derived from one value, so it keeps both from drifting - document that env values are read at container start: a file edit needs a recreate (podman compose up -d) and not podman restartAhmet Kaan Gümüş · 8970f61
fix: 🔌 let the env file own BACKEND_ORIGIN
- drop BACKEND_ORIGIN from the service environment: — a listed key wins over
  env_file, so it shadowed the operator file with the compose default on any
  up that omitted --env-file, which is exactly how a server ended up proxying
  /api to an address nobody chose
- server.ts already defaults to the same public origin, so the laptop path
  (no env file, no flags) behaves as before while the file is now authoritative
- PORT stays interpolated: the published port and the container listener are
  derived from one value, so it keeps both from drifting
- document that env values are read at container start: a file edit needs a
  recreate (podman compose up -d) and not podman restart
chore: 🔧 podman compose stack and VPS deploy workflow - compose.yaml: one frontend service on loopback, knobs read from an external hezarfen_frontend.env (PORT moves the listener, the published port and the healthcheck together; BACKEND_ORIGIN moves the proxy target), no volumes - deploy/hezarfen_frontend.env.example: the operator-owned knobs file, written once by hand at 0600, never created or uploaded by the deploy - deploy/hezarfen_frontend_compose.service: systemd user unit that runs podman compose with both env files at boot and on restart - deploy/Containerfile.runtime: CI-only runtime image packing dist/ + server.ts, so the shipped image carries no source, node_modules or toolchain - .github/workflows/main.yml: typecheck in parallel with build-and-test (tsc, vitest, vite build, image tarball as the run artifact), then an SSH deploy that loads the image, rotates HEZARFEN_TAG in a deploy-owned stack.env, restarts the unit, and rolls back unless the new build serves the SPA shell - README: container and deploy sections, including the three SSH_* repo secrets and the loginctl enable-linger prerequisiteAhmet Kaan Gümüş · 70570e9
chore: 🔧 podman compose stack and VPS deploy workflow
- compose.yaml: one frontend service on loopback, knobs read from an external
  hezarfen_frontend.env (PORT moves the listener, the published port and the
  healthcheck together; BACKEND_ORIGIN moves the proxy target), no volumes
- deploy/hezarfen_frontend.env.example: the operator-owned knobs file, written
  once by hand at 0600, never created or uploaded by the deploy
- deploy/hezarfen_frontend_compose.service: systemd user unit that runs podman
  compose with both env files at boot and on restart
- deploy/Containerfile.runtime: CI-only runtime image packing dist/ + server.ts,
  so the shipped image carries no source, node_modules or toolchain
- .github/workflows/main.yml: typecheck in parallel with build-and-test (tsc,
  vitest, vite build, image tarball as the run artifact), then an SSH deploy
  that loads the image, rotates HEZARFEN_TAG in a deploy-owned stack.env,
  restarts the unit, and rolls back unless the new build serves the SPA shell
- README: container and deploy sections, including the three SSH_* repo secrets
  and the loginctl enable-linger prerequisite
fix: 🔌 point frontend proxy at remote backendBurak Boduroğlu · 4edb34b
fix: 🔌 point frontend proxy at remote backend

- default development and production proxy traffic to https://hezarfen.dizey.sh
- allow BACKEND_ORIGIN overrides for local or alternate deployments
- remove the obsolete shared backend Podman network dependency
- document the remote backend and Compose usage

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.

2026-07-12