Skip to content

fix(caddy): serve origin TLS for crm.legal.org.ua (Cloudflare Full strict)#50

Merged
overthelex merged 1 commit into
mainfrom
fix/crm-tls-origin-cert
Jul 3, 2026
Merged

fix(caddy): serve origin TLS for crm.legal.org.ua (Cloudflare Full strict)#50
overthelex merged 1 commit into
mainfrom
fix/crm-tls-origin-cert

Conversation

@overthelex

Copy link
Copy Markdown
Owner

https://crm.legal.org.ua/ returned 525 (SSL handshake CF↔origin failed).

Root causes fixed:

  1. Missing DNS — added proxied A record crm3.73.121.74 in Cloudflare (done via API, not in this diff).
  2. Origin TLSlegal.org.ua zone is Cloudflare Full (strict), so the origin must serve a valid cert on :443. The old http:// Caddyfile only listened on :80. Now Caddy serves a Cloudflare Origin CA cert (valid to 2041) mounted from /home/ubuntu/caddy-certs (kept outside the rsync --delete REMOTE_DIR).

Verified: end-to-end https://crm.legal.org.ua/200 via Cloudflare (via: 1.1 Caddy).

Already applied live on EC2 (caddy container recreated); this commit persists the config so CI deploys don't revert it.

🤖 Generated with Claude Code

…rigin CA

legal.org.ua zone is Cloudflare Full (strict), so the origin must present a
valid cert on :443. Old http:// Caddyfile only served :80 -> CF returned 525.
Serve the Cloudflare Origin CA cert (mounted from /home/ubuntu/caddy-certs,
outside the rsync --delete REMOTE_DIR) and reverse_proxy to app.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@overthelex
overthelex merged commit ce8b951 into main Jul 3, 2026
2 checks passed
@overthelex
overthelex deleted the fix/crm-tls-origin-cert branch July 3, 2026 13:11
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