Files
headroom/docker/Caddyfile
Tejas ChopraandClaude Opus 5.5 c80cb94930 feat(docker): add a compose file that serves a shared proxy over HTTPS with Caddy
Headroom's listener speaks plain HTTP, so a shared proxy sent the proxy
token, prompts and provider credentials across the network unencrypted
unless the operator built their own HTTPS front. docker-compose.https.yml
runs Caddy in its own container in front of Headroom: Caddy serves HTTPS
and renews the certificate, Headroom's port stays on the compose network,
and the proxy token is required. Caddy reaches Headroom by service name,
not loopback, so the token is still checked on every request.

Assay-Kind: feature
Assay-Ask: Teams running Headroom as a shared proxy had no simple way to serve it over HTTPS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:36:59 -08:00

12 lines
479 B
Caddyfile

# HTTPS in front of Headroom. Used by docker/docker-compose.https.yml.
{$HEADROOM_DOMAIN} {
# Certificate: a public name gets one from Let's Encrypt automatically.
# For an internal name, uncomment one of these:
# your company's certificate (mount the files into the caddy service):
# tls /certs/headroom.crt /certs/headroom.key
# Caddy's own CA (install its root, /data/caddy/pki/authorities/local/root.crt, on clients):
# tls internal
reverse_proxy headroom:8787
}