From ec7bc8ff2ca673c33cd0454ab042a53a4181d787 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Apr 2026 11:29:56 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20infra:=20deprecate=20tracked=20`docker/C?= =?UTF-8?q?addyfile`=20=E2=80=94=20`generate=5Fcaddyfile`=20is=20the=20sin?= =?UTF-8?q?gle=20source=20of=20truth=20(#771)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add docker/Caddyfile to .gitignore (generated artifact, not tracked) - Document generate_caddyfile as canonical source in lib/generators.sh Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitignore | 3 +++ lib/generators.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2fd9aed..83cc844 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,9 @@ docker/agents/bin/ # Note: This file is now committed to track volume mount configuration # docker-compose.yml +# Generated Caddyfile — single source of truth is generate_caddyfile in lib/generators.sh +docker/Caddyfile + # Python bytecode __pycache__/ *.pyc diff --git a/lib/generators.sh b/lib/generators.sh index 69c82a1..775b918 100644 --- a/lib/generators.sh +++ b/lib/generators.sh @@ -652,7 +652,11 @@ _generate_agent_docker_impl() { fi } -# Generate docker/Caddyfile template for edge proxy. +# Generate docker/Caddyfile for the edge proxy. +# **CANONICAL SOURCE**: This generator is the single source of truth for the Caddyfile. +# Output path: ${FACTORY_ROOT}/docker/Caddyfile (gitignored — generated artifact). +# The edge compose service mounts this path as /etc/caddy/Caddyfile. +# On a fresh clone, `disinto init` calls generate_caddyfile before first `disinto up`. _generate_caddyfile_impl() { local docker_dir="${FACTORY_ROOT}/docker" local caddyfile="${docker_dir}/Caddyfile"