You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original config had `{uri.path.substr(10}` and `{uri.path.substr(5}` in
the apex redirect rules — both are invalid Caddy syntax (no substr()
placeholder exists, AND a paren was missing). Caddy rejected the new
config on every reload and kept the old apex-only config running, which
is why api./console./docs. had no certs.
Rewrites:
- Apex redirects to subdomains now use path_regexp matchers with
named captures, e.g.
@Dash path_regexp dash ^/dashboard(/.*)?$
redir @Dashhttps://console.zeroauth.dev{re.dash.1} permanent
Empty capture for a bare /dashboard request canonicalises to
/dashboard/ on the receiving side — Caddy handles that.
- console.zeroauth.dev + docs.zeroauth.dev path prefixing now uses
`rewrite * /dashboard{uri}` / `rewrite * /docs{uri}`, a single
standard Caddy v2 directive. Removed the prior 'rewrite /' +
'rewrite /*' pair that would have double-rewritten.
- api.zeroauth.dev dropped the catch-all 404 fence. Upstream Express
handles the routing; on this vhost everything proxies through.
Header forwarding (X-Real-IP / X-Forwarded-* incl. X-Forwarded-Host)
stays identical across all four vhosts.
0 commit comments