Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
Last technical review · 17.08.2026 · Coolify Edge & Backup

Coolify + Cloudflare: Design the Origin Trust Boundary, Not Just a CDN

Turning on Cloudflare proxy does not automatically make TLS correct. Browser→Cloudflare and Cloudflare→origin are two separate TLS hops; origin certificates, proxy mode, firewall and backup storage must align.

Production note

Using Flexible SSL sends HTTP to the origin and can create redirect loops or security problems for authenticated applications. Do not terminate HTTPS only at the edge.

coolify cloudflarecoolify ssl full strictcoolify backup r2
TECHNICAL IMPLEMENTATION PROFILE
EKA CORE
Coolify Edge & Backup

For production, prefer Full (strict) and keep a valid certificate on the origin. If you can restrict origin reachability to Cloudflare or a Tunnel path, the attack surface can be reduced further.

2×TLSTwo TLS hops
Checked
StrictPreferred origin validation
Checked
R2/S3Off-host backup
Checked
TunnelInbound alternative
Checked
Technical guide · production-focused · official sources
Quick answer

For production, prefer Full (strict) and keep a valid certificate on the origin. If you can restrict origin reachability to Cloudflare or a Tunnel path, the attack surface can be reduced further.

01

Technical scope at a glance

Publish Coolify apps safely behind Cloudflare with DNS proxying, Full (strict), origin access, Tunnel alternatives, R2/S3 backups and restore validation.

2×TLSTwo TLS hops

Browser→Cloudflare and Cloudflare→origin are validated separately.

StrictPreferred origin validation

Mode that validates the origin certificate.

R2/S3Off-host backup

Object storage separates backup copies from the application host.

TunnelInbound alternative

Some designs connect without directly exposing inbound origin ports.

On this page

  1. 1. Draw TLS as two separate connections
  2. 2. Validate DNS unproxied before enabling the proxy
  3. 3. Validate origin certificate chain for Full (strict)
  4. 4. Close origin-IP bypass paths
  5. 5. When is Cloudflare Tunnel a cleaner design?
  6. 6. Treat R2/S3 backup as a recovery chain, not file copying
  7. 7. Use separate runbooks for 525/526, redirect loops and origin downtime
  8. Frequently asked questions
02

1. Draw TLS as two separate connections

Edge and origin certificates have separate lifecycles. Troubleshooting without identifying the failing hop wastes time.

HopCertificateValidation
Browser → CloudflareEdge certificateBrowser/public CA
Cloudflare → Coolify originOrigin/public certificateFull (strict)
03

2. Validate DNS unproxied before enabling the proxy

Proxying can hide a wrong A/AAAA target. Validate direct DNS and certificate behavior before turning on the orange cloud.

Command
dig +short app.example.com A
Command
dig +short app.example.com AAAA
Command
curl -vkI https://ORIGIN_IP -H "Host: app.example.com"
Command
openssl s_client -connect ORIGIN_IP:443 -servername app.example.com </dev/null
04

3. Validate origin certificate chain for Full (strict)

Hostname mismatch, expiry or incomplete chains can trigger edge TLS errors. Monitor certificate renewal separately from deployments.

Command
openssl s_client -connect ORIGIN_IP:443 -servername app.example.com -showcerts </dev/null
Command
echo | openssl s_client -connect ORIGIN_IP:443 -servername app.example.com 2>/dev/null | openssl x509 -noout -dates -issuer -subject
05

4. Close origin-IP bypass paths

If the origin is globally reachable, attackers may bypass Cloudflare WAF/rate limits. Evaluate firewall rules, Tunnel or authenticated origin mechanisms as appropriate.

Do not confuse SSH/panel management ports with proxied web traffic; restrict management separately.
When origin IP changes, update both Cloudflare DNS and firewall allow lists.
06

5. When is Cloudflare Tunnel a cleaner design?

An outbound Tunnel can be useful when you do not want inbound 80/443, sit behind NAT or prefer not to publish the origin IP.

ModelBenefitCaution
DNS proxySimple, standardOrigin exposure/firewall
TunnelMay avoid inbound portsTunnel-agent dependency
07

6. Treat R2/S3 backup as a recovery chain, not file copying

When sending backups to object storage, document lifecycle, encryption, credentials and the actual restore command together.

Separate backup credentials from deployment credentials.
Align bucket lifecycle/versioning with retention policy.
Pull real data from object storage during monthly restore tests.
08

7. Use separate runbooks for 525/526, redirect loops and origin downtime

Edge errors can look similar while causes differ. Isolate DNS, TLS handshake, HTTP redirects and application health in order.

EKA SUNUCU · TECHNICAL

Combine edge security and backup in one production plan

Plan Coolify + Cloudflare origin access and R2/S3 backup topology together on an Eka Sunucu VPS.

Production principleMeasure → Test → DeployNo fabricated benchmark data.
SRC

Official sources

Primary documentation and technical references used by this guide.

EKA

Related technical guides

Continue with related infrastructure and implementation guides.

FAQ

Frequently asked questions

Coolify Edge & Backup

Which Cloudflare SSL mode should I use with Coolify?

With a valid origin certificate, prefer Full (strict) for production. Flexible sends HTTP to the origin and is not recommended.

Is Cloudflare Tunnel required?

No. Standard proxied DNS with a secured origin works too. Choose Tunnel based on inbound-port and origin-exposure requirements.

Is R2 itself a database backup?

R2/S3 is an object-storage target. First create a consistent database dump/PITR artifact, then transfer it securely.

Does hiding the origin IP hurt SEO?

Search engines need the public URL to be accessible and performant; direct public exposure of the origin IP is not an SEO requirement.

Top