Files
hermeven/deploy/Caddyfile.example
T
DanandClaude Fable 5.2 98c7b03aa7 Record the first droplet deployment; align deploy files with what ran
Documentation and deployment examples only; no application code changed.
The systemd unit and Caddyfile now match what is running on the droplet,
and docs/evidence/droplet/2026-11-21.md records the changes made and the
checks performed. No device or phone evidence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 12:02:44 -08:00

29 lines
832 B
Caddyfile

# Caddy terminates TLS (certificates are obtained automatically), forwards the bridge API to
# loopback, and serves the built phone page from the same origin. Replace the hostname.
# This is the shape running on the first droplet deployment (2026-11-21).
bridge.example.com {
encode zstd gzip
header {
Strict-Transport-Security "max-age=31536000"
X-Content-Type-Options "nosniff"
Referrer-Policy "no-referrer"
-Server
}
# Bridge API. Audio uploads are at most about 1 MB at the default 30 s cap.
@api path /v1/* /healthz
handle @api {
request_body {
max_size 2MB
}
reverse_proxy 127.0.0.1:8787
}
# The built client (apps/even-client/dist). Static files, no secrets. Serving it from the
# bridge's own origin means the page needs no CORS allowance.
handle {
root * /opt/hermeven/www
file_server
}
}