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
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