Files
supermarket/server/Caddyfile.multi
T
davidandClaude Opus 5.5 f4c31c9fa3 Phase 13, part 9: running at scale, and the proof
The multi-tenant edition starts. compose.multi.yaml runs several copies
behind Caddy, with the managed Postgres and Garage outside. A test walks
every page and fragment, with ids filled in, and every MCP tool, as one
team, and none shows another team's data or changes it; another has three
copies share six teams' work, each team's turn once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:46:01 -07:00

21 lines
474 B
Caddyfile

# Caddy in front of the multi-tenant edition's copies (compose.multi.yaml).
{
{$SUPERMARKET_ACME}
}
{$SUPERMARKET_DOMAIN} {
{$SUPERMARKET_TLS}
encode zstd gzip
header Strict-Transport-Security "max-age=31536000"
# Every copy of the app, found by name, round robin; a copy that stops
# answering is left out until it's healthy.
reverse_proxy {
dynamic a supermarket 8080 {
refresh 10s
}
lb_policy round_robin
health_uri /healthz
health_interval 10s
}
}