Skip to content

Cloudflare ​

Cloudflare does DNS, TLS at the edge, the login wall and backup storage for the stu-bot.uk zone.

DNS and TLS ​

  • All the stack's records are proxied, which they have to be because of the firewall (see Networking).
  • When an app gets a domain, Coolify creates its DNS record itself, through a Cloudflare integration token that can only edit DNS.
  • SSL mode is Full. Traefik on the server gets Let's Encrypt certificates using the HTTP challenge, which works through the proxy because "Always use HTTPS" is off at Cloudflare.

Access (the login wall) ​

Cloudflare Zero Trust, free plan. Login is by one-time PIN: you enter the email address and type in the code.

Access appCoversPolicy
coolifycoolify.stu-bot.ukmy email
coolify api + mcp/api, /mcpservice token or my email
coolify webhooks/webhooksbypass (GitHub needs it)
opsops.stu-bot.ukmy email
n8nn8n.stu-bot.ukmy email
n8n webhooks/webhook, /webhook-testbypass

A path-specific app wins over the hostname app, which is how webhooks get through while the UI stays locked.

Claude Code on my Mac uses a service token: it sends CF-Access-Client-Id and CF-Access-Client-Secret headers alongside Coolify's bearer token. Sessions last 24 hours.

A bypassed webhook path is open to the world, so whatever receives it has to check its own secret (an HMAC signature or a header token).

R2 ​

  • Bucket stu-infra-backups, Western Europe, private (no public r2.dev URL).
  • A lifecycle rule deletes objects older than 30 days and aborts unfinished multipart uploads after a day.
  • Coolify talks to it over the S3 API. The S3 key pair is derived from the main API token (access key = token id, secret = sha256 of the token), so rolling that token breaks backups until Coolify's storage is updated.

API tokens ​

TokenCan doUsed by
main infra tokenDNS, zone settings, Access, Workers, R2the infra CLI on my Mac
DNS-only tokenedit DNSCoolify's integration
R2 read-onlyread R2 usage and analyticsthe ops page

Cloudflare's bot check blocks the default Python user agent (error 1010), so anything scripted sends its own User-Agent.