Done Work Item
Reverse proxy + SSL — Caddy config with automatic Let's Encrypt and HTTPS-only enforcement
Add Caddy as the reverse proxy layer in front of the operator-cockpit Next.js app. Create Caddyfile with: automatic HTTPS via Let's Encrypt (ACME), HTTP-to-HTTPS redirect (no plain HTTP allowed in production), reverse proxy to the Next.js container, WebSocket upgrade support for dev-server hot reload. Add caddy service to docker-compose.production.yml. Configure HSTS header. Support configurable domain name via environment variable. Document local dev with self-signed cert option. Prerequisite for BF-220 (deploy pipeline) and BF-275 (VPS provisioning).
Execution Context
- ID
- wi-BF-218
- Branch
- bf/BF-218-reverse-proxy-ssl-caddy
- Validation
- ./scripts/validate-local.ps1
- PR
- https://github.com/SingletonTheory/build-factory-bootstrap/pull/275
Lifecycle Metadata
- Lane
- Done
- Work type
- operations
- Source
- done
- Status
- done
- State
- done
- Done criteria
- 8
Queue Truth
Freshness: Fresh (snapshot age 0s)
Drift: none.
Reconciliation Guidance
- No reconciliation required; item truth signals are consistent.
Prompt Context
./work-items/prompts/wi-BF-218.prompt.md
Add Caddy as the reverse proxy layer in front of the operator-cockpit Next.js app. Create Caddyfile with: automatic HTTPS via Let's Encrypt (ACME), HTTP-to-HTTPS redirect (no plain HTTP allowed in production), reverse proxy to the Next.js container, WebSocket upgrade support for dev-server hot reload. Add caddy service to docker-compose.production.yml. Configure HSTS header. Support configurable domain name via environment variable. Document local dev with self-signed cert option. Prerequisite for BF-220 (deploy pipeline) and BF-275 (VPS provisioning).
Available Actions
- Start executionBlocked
Queue execution handoff for this work item.
Recovery guidance
- Cause
- Done items stay closed; Start execution cannot move them backward.
- Policy context
- Lane transition policy blocks Start execution when the item is already Done.
- Next step
- Create a net-new work item if more delivery is needed instead of reopening this one.
- Safe retry
- Do not retry Start execution on a done item.
identity: start-execution
permission: factory.work-item.execute
policy gate lane-transition: blocked (Done items stay closed; Start execution cannot move them backward.)
POST /api/control-plane/items/wi-BF-218/actions/start-execution
- Request reviewBlocked
Mark this item ready for review lane handoff.
Recovery guidance
- Cause
- Done items stay closed; Request review cannot move them backward.
- Policy context
- Lane transition policy blocks Request review when the item is already Done.
- Next step
- Create a net-new work item if more delivery is needed instead of reopening this one.
- Safe retry
- Do not retry Request review on a done item.
identity: request-review
permission: factory.work-item.request-review
policy gate lane-transition: blocked (Done items stay closed; Request review cannot move them backward.)
POST /api/control-plane/items/wi-BF-218/actions/request-review
- Prepare releaseEnabled
Run release-preparation checks for the work item.
identity: prepare-release
permission: factory.work-item.prepare-release
policy gate lane-eligibility: pass
policy gate pull-request: pass
POST /api/control-plane/items/wi-BF-218/actions/prepare-release
- Record historyEnabled
Capture history snapshots for audit and validation views.
identity: record-history
permission: factory.work-item.record-history
policy gate context-visibility: pass
POST /api/control-plane/items/wi-BF-218/actions/record-history