Workers
To ensure that your Cloudflare Workers code runs only within a specific geographic region, configure Regional Services on the Workers custom domain. This restricts where TLS termination (traffic decryption) and code execution occur.
To configure Regional Services for hostnames proxied (meaning traffic routes through Cloudflare rather than directly to your origin server) through Cloudflare and ensure that processing of a Workers project occurs only in-region, follow these steps:
-
In the Cloudflare dashboard, go to the Workers & Pages page.
Go to Workers & Pages -
Select your Workers project.
-
Follow the steps to create a custom domain.
-
Run the API POST command on the configured Workers Custom Domain to create a
regional_hostnameswith a specific region.
Regional Services only applies to the custom domain configured for a Workers project. Therefore, it will run only in-region Cloudflare locations.
Regional Services does not apply to subrequests (secondary HTTP requests that Workers make to other services).
Regional Services does not apply to other Worker triggers, like Queues or Cron Triggers.
Customer Metadata Boundary applies to the custom domain configured, as well as the *.workers.dev subdomain.
Workers Metrics and Analytics are not available outside the US region when using Customer Metadata Boundary.
With Customer Metadata Boundary set to EU, Workers & Pages > Workers > Metrics tab the zone dashboard will not be populated.
Refer to the Workers documentation for more information.