The content repo now runs one preview per branch, for five days after its last push, behind its own router on 127.0.0.1:3066 (tomtervel/questions, .gitea/preview/). This is kasse's side of it: - dns: *.forhandsvisning beside the bare name, both unproxied to kasse. - host-caddy: the bare name and *.forhandsvisning go to 3066 instead of the single preview on 3065. A branch's name gets its certificate on demand, and only after the router says the branch has a preview, so made-up names cannot use up Let's Encrypt's limits. That needs the on_demand_tls ask option in kasse's global Caddyfile, described in the file. Also brings the file back in line with what kasse runs. - README: the Previews section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
3 files changed
+59
-19
No files matched your search
+5
-1
@@ -36,8 +36,12 @@ D("tomtervel.no", REG_NONE, DnsProvider(DSP_CLOUDFLARE),
|
||||
// id on to konto (the login) and chat on to samtaler.
|
||||
A("id", KASSE, CF_PROXY_OFF),
|
||||
A("chat", KASSE, CF_PROXY_OFF),
|
||||
// The content repo's preview: a branch before it is merged.
|
||||
// The content repo's previews: the list of them, and one name per
|
||||
// branch before it is merged (<branch>.forhandsvisning). Caddy gets a
|
||||
// certificate for a branch's name the first time it is asked for, and
|
||||
// only for a branch that has a preview (host-caddy/tomtervel.no).
|
||||
A("forhandsvisning", KASSE, CF_PROXY_OFF),
|
||||
A("*.forhandsvisning", KASSE, CF_PROXY_OFF),
|
||||
|
||||
// The old website, kept for now so the move can be undone: what the
|
||||
// apex and web. pointed at before (Netlify, through Cloudflare). The
|
||||
|
||||
Reference in new issue
Block a user