Skip to content

docs: add Caddy reverse-proxy example + proxy guide#7

Open
shanzez wants to merge 1 commit into
Platform-Collective:mainfrom
shanzez:docs/caddy-reverse-proxy
Open

docs: add Caddy reverse-proxy example + proxy guide#7
shanzez wants to merge 1 commit into
Platform-Collective:mainfrom
shanzez:docs/caddy-reverse-proxy

Conversation

@shanzez

@shanzez shanzez commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Adds a Caddy option for fronting Huly (the repo already covers nginx + Traefik), plus a short guide tying the options together.

What

  • examples/Caddyfile - fronts Huly with automatic Let's Encrypt HTTPS and transparent WebSocket support. Because Caddy handles TLS renewal and WebSocket upgrades itself, the whole config is a few lines.
  • guides/reverse-proxy.md - nginx / Caddy / Traefik, with the two gotchas that actually bite people: the front needs WebSocket forwarding (the transactor), and SECURE + HOST_ADDRESS must be set so Huly emits https/wss (a mismatch is the usual "Failed to fetch" / websocket-error cause).
  • README pointer to the guide.

Mirrors the existing .template.nginx.conf proxy target and headers. Addresses the recurring "how to install with Caddy" request (upstream huly-selfhost#82).

Testing

Caddyfile passes caddy validate (adapter: caddyfile) - confirmed auto-HTTPS + HTTP->HTTPS redirect. Docs-only otherwise.

Contributed by Exaviz (exaviz.com).

Add examples/Caddyfile (automatic HTTPS + transparent WebSocket support)
and guides/reverse-proxy.md covering nginx, Caddy, and Traefik, with the
key gotchas: forwarding WebSockets for the transactor, and keeping SECURE +
HOST_ADDRESS consistent so Huly emits https/wss. Link the guide from README.

Addresses the recurring 'how to use Caddy' request (upstream huly-selfhost#82).
Caddyfile validated with 'caddy validate'.

Signed-off-by: Exaviz <info@exaviz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant