Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.suga.app/llms.txt

Use this file to discover all available pages before exploring further.

Public HTTPS requests to Suga services enter through Cloudflare’s global edge before reaching the Suga region that hosts your environment. Cloudflare handles TLS, WAF, and CDN behavior at the edge; the region runs your service. TCP proxy traffic takes a different path (see Request Path).

Edge Network

HTTPS traffic to a Suga service is served through Cloudflare’s global network, which has presence in over 300 cities. This applies to both auto-generated Suga domains and custom domains. At the edge, Cloudflare provides:
  • TLS termination with automatically provisioned and renewed certificates
  • WAF and DDoS protection
  • Default Cloudflare zone behavior such as static asset caching and compression
Once the edge has handled the request, traffic is forwarded to the Suga region hosting your environment. See HTTPS Endpoints for the service-level configuration.

Regions

Suga Cloud runs workloads in three regions. Each organization is assigned to a region when its Suga Cloud account is set up, and every environment in that organization runs in the assigned region.
AreaRegionLocation
Americasus-central1Iowa, USA
Europeeurope-west1St. Ghislain, Belgium
Asia-Pacificaustralia-southeast1Sydney, Australia
All environments in an organization share the same region. To run workloads in multiple regions today, contact support. Region migration and multi-region setup are handled manually.

Request Path

A public HTTPS request follows this path: The client connects to the closest Cloudflare location, Cloudflare forwards the request to the regional ingress for the environment, and the ingress routes the request to one of your service replicas. TCP proxy traffic skips the edge layer and connects directly to the regional load balancer, since Cloudflare’s HTTPS edge does not apply to raw TCP. See TCP Proxy.

DNS Architecture

Suga manages DNS records on your behalf. You don’t need to configure them. They’re documented here so you can understand what gets created when you enable a public endpoint or attach a custom domain. Suga-generated HTTPS domains resolve through Cloudflare to the regional ingress for the environment. This is what backs the auto-generated URL shown in the dashboard. Custom domains use a CNAME target of the form:
<id>.cname.<region>.suga.run
You point your domain (e.g. app.example.com) at this target. Suga onboards the hostname through Cloudflare for SaaS, which means your domain inherits the same edge TLS, WAF, DDoS protection, and CDN behavior as Suga’s own domains. See Custom Domains for the setup steps. TCP proxy endpoints use a non-proxied DNS record so raw TCP traffic can reach the regional load balancer directly. The hostname is allocated automatically when you add a TCP proxy.

TLS and Certificates

Suga handles TLS at two layers, with automatic provisioning and renewal at both. You never touch a certificate or a private key.

Edge certificate (browser facing)

The certificate the visitor’s browser validates is issued and renewed by Cloudflare:
  • Suga-generated domains use the zone-level Cloudflare certificate.
  • Custom domains use a per-hostname certificate issued through Cloudflare for SaaS. Domain ownership is verified automatically via HTTP DCV at the edge, so the standard flow needs no manual TXT records.

Origin certificate (Cloudflare to Suga)

The regional ingress holds a single wildcard certificate that covers every Suga-generated hostname in the region. Where it’s issued from depends on whether Cloudflare’s edge sits in front of the region:
ModeIssuerValidityNotes
Proxied (default for HTTPS)Cloudflare Origin CA15 yearsTrusted only by Cloudflare, which is the only client that ever connects to the origin
DirectLet’s Encrypt (DNS-01)90 daysRenewed automatically before expiry, validated against Cloudflare-hosted DNS
DNS-01 validation lets Suga issue wildcard certificates without exposing a challenge endpoint on the public internet. The TXT records used during validation are written and removed automatically.

Authenticated Origin Pulls

When traffic flows through Cloudflare, the regional ingress accepts only connections that present a valid Cloudflare-issued client certificate. Anything trying to bypass Cloudflare and reach the origin directly is rejected at the TLS layer, before any routing or application logic runs. This guards against origin IP discovery attacks and means every byte that reaches your service was authenticated by the Cloudflare edge on top of clearing the WAF.
The origin certificate and the Cloudflare-issued client certificate together provide mutual authentication on the origin connection. There is nothing to configure. This is on by default for every HTTPS endpoint.

What Suga Manages vs What Cloudflare Manages

Suga managesCloudflare manages
DNS records for Suga and custom domainsEdge caching and cache rules
TLS certificate provisioning and renewalCompression (gzip, brotli)
Regional routing to your environmentImage optimization
Custom hostname onboarding via Cloudflare for SaaSMinification
Whichever of these features are active depends on Cloudflare’s zone configuration. Suga doesn’t expose per-tenant overrides.

Common Questions

Yes. The region is selected when your Suga Cloud account is set up and applies to every environment in the organization. To change region after the fact, contact support.
Not today. All environments in an organization share the same region. If you need workloads in more than one region, contact support.
No. These behaviors are controlled by Cloudflare’s zone configuration, and Suga doesn’t expose per-tenant overrides.
Yes. We add regions over time. Contact support if a specific region matters for your workload.

Next Steps

Networking

HTTPS endpoints, TCP proxy, and private networking

Custom Domains

Serve services from your own domain