Skip to main content

Cloudflare Workers

Cloudflare Workers enable serverless compute at the edge, running custom logic before traffic reaches Helsinki2.

Current Status​

No Cloudflare Workers are currently deployed.

Use Cases​

Workers can be used for:

  • URL rewrites and redirects
  • Request/response filtering
  • Authentication and authorization
  • Rate limiting
  • A/B testing
  • Custom caching logic
  • Request logging and analytics

Deployment Model​

If Workers are deployed in the future:

  1. Worker code is written in JavaScript/TypeScript
  2. Deployed via Cloudflare dashboard or Wrangler CLI
  3. Runs at Cloudflare edge, before traffic reaches Helsinki2
  4. Can modify requests/responses or block traffic entirely
  5. No changes needed to CT101 Caddy or VM700

Example: Redirect Old Domain​

export default {
async fetch(request) {
const url = new URL(request.url);
if (url.hostname === 'old-domain.com') {
return Response.redirect('https://new-domain.com' + url.pathname, 301);
}
return fetch(request);
},
};

Notes​

  • Workers do not replace CT101 Caddy routing — they operate upstream
  • Workers are optional and not required for current infrastructure
  • Document any deployed Workers here with their purpose and code location