woodglue.caddy¶
Caddyfile for running woodglue behind Caddy.
Caddyfile for running woodglue behind Caddy (see docs/adr/0004).
wgl caddy config <site> prints a Caddyfile that:
- serves
<site>with Caddy's automatic HTTPS; - removes client-sent
X-Woodglue-*headers, which only woodglue may set; - serves each Static UI's files from disk, after asking woodglue's
/auth/verifythroughforward_authwhether the viewer may open it; - sends everything else to woodglue: the API, docs, login, the Console, and Process-backed UIs, whose processes woodglue runs on ports it picks at start and whose Session handling (cookie stripping, Delegated Tokens, closing websockets on logout) stays in one place.
The operator installs it and reloads Caddy. Caddy holds no Users, Sessions, or Grants; woodglue stays the only place that decides who may do what.
woodglue_address(config)
¶
Where Caddy reaches woodglue.
Source code in src/woodglue/caddy.py
caddyfile(config, site)
¶
The Caddyfile for site. UI paths in config must already be absolute.