Serve the Partner Radar demo at radar.DOMAIN
Test and deploy / test (push) Successful in 2m36s
Test and deploy / deploy (push) Successful in 44s
Weekly Maintenance / maintenance (push) Successful in 7m17s
Renovate / renovate (push) Successful in 8m7s

A new Caddy site proxies radar.DOMAIN to radar-web:80, the web container of
the adamf/cto stack, which joins app-network from its own compose project.
It has its own rate-limit zones (radar, radar_login) and answers 503
"offline" when that stack is down. The name is added to Caddy's network
aliases and cloudflared's extra_hosts like www.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-19 15:50:22 +00:00
co-authored by Claude Opus 5.5
parent 30d6056bc0
commit b6baf9c1a2
5 changed files with 70 additions and 1 deletions
+6 -1
View File
@@ -292,13 +292,14 @@
respond "Too many requests from your address. Wait a moment and retry." 503
}
# An upstream that could not be reached or timed out. Two routes turn that
# An upstream that could not be reached or timed out. Three routes turn that
# into something better than a bare 502, each keyed on a variable its
# route sets (error routes keep the request's vars, and a variable cannot
# be spoofed the way a path can be dressed up):
# uploads_fallback Garage is down: serve the file from disk instead.
# receipt_upstream set only once the permission gate has passed, so a
# backend outage is not reported as the printer's.
# radar_upstream the Partner Radar stack (radar.DOMAIN) is down.
handle_errors 502 504 {
@uploads_fallback vars uploads_fallback yes
handle @uploads_fallback {
@@ -308,6 +309,10 @@
handle @receipt_offline {
respond "The receipt printer machine is offline." 503
}
@radar_offline vars radar_upstream yes
handle @radar_offline {
respond "Partner Radar is offline." 503
}
}
}