Repository navigation
fix(template): Caddyfile leitet an den Prod-Dienst app weiter - #28
Merged
Merged
Conversation
Caddyfile.jinja schickte /api, /admin und /oidc an backend:8000, der Django-Dienst in docker-compose.prod.yml heißt aber app. In Produktion waren API, Login und Admin damit nicht erreichbar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
template/project/Caddyfile.jinjaschickt/api/*,/admin/*und/oidc/*anbackend:8000. Intemplate/project/docker-compose.prod.yml.jinjaheißt der Django-Dienst aberapp, einen Dienstbackendgibt es im Prod-Stack nicht. Caddy kann den Upstream deshalb nicht auflösen: In Produktion werden nur die SPA und die Statics ausgeliefert, API, Login und Django-Admin sind nicht erreichbar.Änderung
Caddyfile.jinja:reverse_proxy backend:8000→reverse_proxy app:8000.CHANGELOG.md(Unreleased → Template): Beschreibung und Migrationsschritt für bestehende Tools. DasCaddyfilesteht in_skip_if_exists,copier updateändert es also nicht; Tools passen es selbst an.Betroffene Tools
app:8000umgestellt.backend.Prüfung
Template gerendert (
pipx run copier copy . /tmp/probe --trust --defaults --vcs-ref HEAD --data project_slug=probe): Das erzeugteCaddyfileenthält nur nochapp:8000,docker-compose.prod.ymldefiniert den Dienstapp.🤖 Generated with Claude Code